Insert Just Mock test attribute aliases for Coverage .tt and .cs files.
This commit is contained in:
Родитель
4b547776b0
Коммит
f45b3459fb
|
@ -22,6 +22,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -30,6 +31,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -37,6 +47,8 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
|
||||
namespace Telerik.JustMock.Tests.Coverage
|
||||
{
|
||||
|
|
|
@ -24,6 +24,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -32,6 +33,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -39,6 +49,7 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
namespace Telerik.JustMock.Tests.Coverage
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -28,6 +29,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -35,6 +45,8 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
|
||||
namespace Telerik.JustMock.Tests.Regression
|
||||
{
|
||||
|
|
|
@ -20,6 +20,7 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -28,6 +29,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -35,6 +45,7 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
namespace Telerik.JustMock.Tests.Regression
|
||||
{
|
||||
|
|
|
@ -21,6 +21,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -29,6 +30,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -36,6 +46,8 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
|
||||
namespace Telerik.JustMock.Tests.Coverage
|
||||
{
|
||||
|
|
|
@ -23,6 +23,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -31,6 +32,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -38,6 +48,7 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
namespace Telerik.JustMock.Tests.Coverage
|
||||
{
|
||||
|
|
|
@ -22,6 +22,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -30,6 +31,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -37,6 +47,8 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
|
||||
namespace Telerik.JustMock.Tests.Coverage
|
||||
{
|
||||
|
|
|
@ -26,6 +26,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
#region JustMock Test Attributes
|
||||
#if NUNIT
|
||||
using NUnit.Framework;
|
||||
using TestCategory = NUnit.Framework.CategoryAttribute;
|
||||
|
@ -34,6 +35,15 @@ using TestMethod = NUnit.Framework.TestAttribute;
|
|||
using TestInitialize = NUnit.Framework.SetUpAttribute;
|
||||
using TestCleanup = NUnit.Framework.TearDownAttribute;
|
||||
using AssertionException = NUnit.Framework.AssertionException;
|
||||
#elif XUNIT
|
||||
using Xunit;
|
||||
using Telerik.JustMock.XUnit.Test.Attributes;
|
||||
using TestCategory = Telerik.JustMock.XUnit.Test.Attributes.XUnitCategoryAttribute;
|
||||
using TestClass = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestClassAttribute;
|
||||
using TestMethod = Xunit.FactAttribute;
|
||||
using TestInitialize = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestInitializeAttribute;
|
||||
using TestCleanup = Telerik.JustMock.XUnit.Test.Attributes.EmptyTestCleanupAttribute;
|
||||
using AssertionException = Xunit.Sdk.AssertException;
|
||||
#elif VSTEST_PORTABLE
|
||||
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
|
||||
using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AssertFailedException;
|
||||
|
@ -41,6 +51,7 @@ using AssertionException = Microsoft.VisualStudio.TestPlatform.UnitTestFramework
|
|||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using AssertionException = Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException;
|
||||
#endif
|
||||
#endregion
|
||||
|
||||
namespace Telerik.JustMock.Tests.Coverage
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче