diff --git a/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.cs b/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.cs index 6aeb097..4754767 100644 --- a/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.cs +++ b/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.cs @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.tt b/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.tt index 39a0808..4dead39 100644 --- a/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.tt +++ b/Telerik.JustMock.Tests/Coverage/DoInsteadFixture.tt @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/MatchersFixture.cs b/Telerik.JustMock.Tests/Coverage/MatchersFixture.cs index 516ccdb..7a0db73 100644 --- a/Telerik.JustMock.Tests/Coverage/MatchersFixture.cs +++ b/Telerik.JustMock.Tests/Coverage/MatchersFixture.cs @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/MatchersFixture.tt b/Telerik.JustMock.Tests/Coverage/MatchersFixture.tt index 4b8f164..970c921 100644 --- a/Telerik.JustMock.Tests/Coverage/MatchersFixture.tt +++ b/Telerik.JustMock.Tests/Coverage/MatchersFixture.tt @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/ReturnsFixture.cs b/Telerik.JustMock.Tests/Coverage/ReturnsFixture.cs index 1910178..df7a41c 100644 --- a/Telerik.JustMock.Tests/Coverage/ReturnsFixture.cs +++ b/Telerik.JustMock.Tests/Coverage/ReturnsFixture.cs @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/ReturnsFixture.tt b/Telerik.JustMock.Tests/Coverage/ReturnsFixture.tt index 3b73561..a442942 100644 --- a/Telerik.JustMock.Tests/Coverage/ReturnsFixture.tt +++ b/Telerik.JustMock.Tests/Coverage/ReturnsFixture.tt @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/WhenFixture.cs b/Telerik.JustMock.Tests/Coverage/WhenFixture.cs index 67a4ba4..4be43f5 100644 --- a/Telerik.JustMock.Tests/Coverage/WhenFixture.cs +++ b/Telerik.JustMock.Tests/Coverage/WhenFixture.cs @@ -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 { diff --git a/Telerik.JustMock.Tests/Coverage/WhenFixture.tt b/Telerik.JustMock.Tests/Coverage/WhenFixture.tt index ebe9810..3f5e6d0 100644 --- a/Telerik.JustMock.Tests/Coverage/WhenFixture.tt +++ b/Telerik.JustMock.Tests/Coverage/WhenFixture.tt @@ -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 {