diff --git a/Tests/ParserTests/ParserTests.csproj b/Tests/ParserTests/ParserTests.csproj index cbc09a210..13b494008 100644 --- a/Tests/ParserTests/ParserTests.csproj +++ b/Tests/ParserTests/ParserTests.csproj @@ -33,10 +33,6 @@ 4 - - False - ..\..\lib\mbunit\MbUnit.dll - False ..\..\lib\nunit\nunit.framework.dll @@ -61,8 +57,6 @@ - - diff --git a/Tests/ParserTests/SuccessfulGenerationTest.cs b/Tests/ParserTests/SuccessfulGenerationTest.cs index fa0566f3f..fe82050e7 100644 --- a/Tests/ParserTests/SuccessfulGenerationTest.cs +++ b/Tests/ParserTests/SuccessfulGenerationTest.cs @@ -1,9 +1,12 @@ using System; -using System.CodeDom; using System.CodeDom.Compiler; +using System.Collections.Generic; using System.Globalization; using System.IO; +using System.Linq; +using System.Reflection; using System.Text; +using System.Xml.Serialization; using Microsoft.CSharp; using NUnit.Framework; using TechTalk.SpecFlow.Generator; @@ -16,167 +19,167 @@ namespace ParserTests [TestFixture] public class SuccessfulGenerationTest { - private void CompareWithExpectedResult(Feature feature, string expectedResultFileName) - { - string expected = TestFileHelper.ReadFile(expectedResultFileName); - string got = GenerateCodeFromFeature(feature); - - Assert.AreEqual(expected, got); - } - - private void GenerateCodeFromFeature(Feature feature, TextWriter writer) - { - var converter = new SpecFlowUnitTestConverter(new NUnitTestConverter(), - new CodeDomHelper(GenerationTargetLanguage.CSharp), true); - CodeNamespace codeNamespace = converter.GenerateUnitTestFixture(feature, "TestClassName", "Target.Namespace"); - - var codeProvider = new CSharpCodeProvider(); - var options = new CodeGeneratorOptions(); - codeProvider.GenerateCodeFromNamespace(codeNamespace, writer, options); - } - - private void GenerateCodeFromFeature(Feature feature, string fileName) - { - using (var writer = new StreamWriter(fileName, false, Encoding.UTF8)) - { - GenerateCodeFromFeature(feature, writer); - } - } - - private string GenerateCodeFromFeature(Feature feature) + [Test] + public void CanGenerateFromFiles() { - using (var writer = new Utf8StringWriter()) + foreach (var testFile in TestFileHelper.GetTestFiles()) { - GenerateCodeFromFeature(feature, writer); - return writer.ToString(); + CanGenerateFromFile(testFile); } } [Test] - public void CanGenerateButFeature() + public void CanGenerateSimpleFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "but.feature")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "simple.feature")); } [Test] public void CanGenerateCommentsFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); CanGenerateFromFile(Path.Combine(folder, "comments.feature")); } [Test] public void CanGenerateFeatureheaderFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); CanGenerateFromFile(Path.Combine(folder, "featureheader.feature")); } - [Test, TestCaseSource(typeof (TestFileHelper), "GetTestFiles")] - public void CanGenerateFromFile(string fileName) + [Test] + public void CanGenerateTagsFeature() { - Console.WriteLine(fileName); - var parser = new SpecFlowLangParser(new CultureInfo("en-US")); - using (var reader = new StreamReader(fileName)) - { - Feature feature = parser.Parse(reader); - Assert.IsNotNull(feature); - - string generatedCode = GenerateCodeFromFeature(feature); - Assert.IsNotNull(generatedCode); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "tags.feature")); + } - // to regenerate the expected result file: - //GenerateCodeFromFeature(feature, fileName + ".cs"); + [Test] + public void CanGeneratebackgroundFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "background.feature")); + } - //CompareWithExpectedResult(feature, fileName + ".cs"); - } + [Test] + public void CanGeneratebackgroundWithTitleFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "background_withtitle.feature")); } [Test] - public void CanGenerateFromFiles() + public void CanGenerateWhitespacesFeature() { - foreach (string testFile in TestFileHelper.GetTestFiles()) - { - CanGenerateFromFile(testFile); - } + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "whitespaces.feature")); } [Test] public void CanGenerateGivenWhenThenDuplicationFeatureFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); CanGenerateFromFile(Path.Combine(folder, "givenwhenthenduplication.feature")); } [Test] - public void CanGenerateMixedGWTFeature() + public void CanGenerateButFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "mixedgivenwhenthen.feature")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "but.feature")); + } + + [Test] + public void CanGenerateMultilinetitleFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "multilinetitle.feature")); } [Test] public void CanGenerateMultilineargumentFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); CanGenerateFromFile(Path.Combine(folder, "multilineargument.feature")); } [Test] - public void CanGenerateMultilinetitleFeature() + public void CanGenerateTableargumentFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "multilinetitle.feature")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "tableargument.feature")); } [Test] public void CanGenerateScneriooutlineFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); CanGenerateFromFile(Path.Combine(folder, "scenariooutline.feature")); } [Test] - public void CanGenerateSimpleFeature() + public void CanGenerateMixedGWTFeature() { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "simple.feature")); + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "mixedgivenwhenthen.feature")); } - [Test] - public void CanGenerateTableargumentFeature() + + [Test, TestCaseSource(typeof(TestFileHelper), "GetTestFiles")] + public void CanGenerateFromFile(string fileName) { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "tableargument.feature")); + Console.WriteLine(fileName); + SpecFlowLangParser parser = new SpecFlowLangParser(new CultureInfo("en-US")); + using (var reader = new StreamReader(fileName)) + { + Feature feature = parser.Parse(reader); + Assert.IsNotNull(feature); + + string generatedCode = GenerateCodeFromFeature(feature); + Assert.IsNotNull(generatedCode); + + // to regenerate the expected result file: + //GenerateCodeFromFeature(feature, fileName + ".cs"); + + //CompareWithExpectedResult(feature, fileName + ".cs"); + } } - [Test] - public void CanGenerateTagsFeature() + private void CompareWithExpectedResult(Feature feature, string expectedResultFileName) { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "tags.feature")); + string expected = TestFileHelper.ReadFile(expectedResultFileName); + string got = GenerateCodeFromFeature(feature); + + Assert.AreEqual(expected, got); } - [Test] - public void CanGenerateWhitespacesFeature() + private void GenerateCodeFromFeature(Feature feature, TextWriter writer) { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "whitespaces.feature")); + SpecFlowUnitTestConverter converter = new SpecFlowUnitTestConverter(new NUnitTestConverter(), new CodeDomHelper(GenerationTargetLanguage.CSharp), true); + var codeNamespace = converter.GenerateUnitTestFixture(feature, "TestClassName", "Target.Namespace"); + + CSharpCodeProvider codeProvider = new CSharpCodeProvider(); + CodeGeneratorOptions options = new CodeGeneratorOptions(); + codeProvider.GenerateCodeFromNamespace(codeNamespace, writer, options); } - [Test] - public void CanGeneratebackgroundFeature() + private void GenerateCodeFromFeature(Feature feature, string fileName) { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "background.feature")); + using (var writer = new StreamWriter(fileName, false, Encoding.UTF8)) + { + GenerateCodeFromFeature(feature, writer); + } } - [Test] - public void CanGeneratebackgroundWithTitleFeature() + private string GenerateCodeFromFeature(Feature feature) { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "background_withtitle.feature")); + using (var writer = new Utf8StringWriter()) + { + GenerateCodeFromFeature(feature, writer); + return writer.ToString(); + } } } -} \ No newline at end of file +} diff --git a/Tests/ParserTests/SuccessfulXUnitGenerationTest.cs b/Tests/ParserTests/SuccessfulXUnitGenerationTest.cs index a2bc395d6..e3f313b97 100644 --- a/Tests/ParserTests/SuccessfulXUnitGenerationTest.cs +++ b/Tests/ParserTests/SuccessfulXUnitGenerationTest.cs @@ -1,9 +1,12 @@ using System; -using System.CodeDom; using System.CodeDom.Compiler; +using System.Collections.Generic; using System.Globalization; using System.IO; +using System.Linq; +using System.Reflection; using System.Text; +using System.Xml.Serialization; using Microsoft.CSharp; using NUnit.Framework; using TechTalk.SpecFlow.Generator; @@ -13,171 +16,172 @@ namespace ParserTests { - [TestFixture] - public class SuccessfulXUnitGenerationTest - { - private void CompareWithExpectedResult(Feature feature, string expectedResultFileName) - { - string expected = TestFileHelper.ReadFile(expectedResultFileName); - string got = GenerateCodeFromFeature(feature); - - Assert.AreEqual(expected, got); - } - - private void GenerateCodeFromFeature(Feature feature, TextWriter writer) - { - var codeDomHelper = new CodeDomHelper(GenerationTargetLanguage.CSharp); - var xUnitTestGeneratorProvider = new XUnitTestGeneratorProvider(); - var converter = new SpecFlowUnitTestConverter(xUnitTestGeneratorProvider, codeDomHelper, true); - CodeNamespace codeNamespace = converter.GenerateUnitTestFixture(feature, "TestClassName", "Target.Namespace"); - - var codeProvider = new CSharpCodeProvider(); - var options = new CodeGeneratorOptions(); - codeProvider.GenerateCodeFromNamespace(codeNamespace, writer, options); - } - - private void GenerateCodeFromFeature(Feature feature, string fileName) - { - using (var writer = new StreamWriter(fileName, false, Encoding.UTF8)) - { - GenerateCodeFromFeature(feature, writer); - } - } - - private string GenerateCodeFromFeature(Feature feature) - { - using (var writer = new Utf8StringWriter()) - { - GenerateCodeFromFeature(feature, writer); - return writer.ToString(); - } - } - - [Test] - public void CanGenerateButFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "but.feature")); - } - - [Test] - public void CanGenerateCommentsFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "comments.feature")); - } - - [Test] - public void CanGenerateFeatureheaderFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "featureheader.feature")); - } - - [Test, TestCaseSource(typeof (TestFileHelper), "GetTestFiles")] - public void CanGenerateFromFile(string fileName) - { - Console.WriteLine(fileName); - var parser = new SpecFlowLangParser(new CultureInfo("en-US")); - using (var reader = new StreamReader(fileName)) - { - Feature feature = parser.Parse(reader); - Assert.IsNotNull(feature); - - string generatedCode = GenerateCodeFromFeature(feature); - Assert.IsNotNull(generatedCode); - - // to regenerate the expected result file: - //GenerateCodeFromFeature(feature, fileName + ".cs"); - - //CompareWithExpectedResult(feature, fileName + ".cs"); - } - } - - [Test] - public void CanGenerateFromFiles() - { - foreach (string testFile in TestFileHelper.GetTestFiles()) - { - CanGenerateFromFile(testFile); - } - } - - [Test] - public void CanGenerateGivenWhenThenDuplicationFeatureFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "givenwhenthenduplication.feature")); - } - - [Test] - public void CanGenerateMixedGWTFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "mixedgivenwhenthen.feature")); - } - - [Test] - public void CanGenerateMultilineargumentFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "multilineargument.feature")); - } - - [Test] - public void CanGenerateMultilinetitleFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "multilinetitle.feature")); - } - - [Test] - public void CanGenerateScneriooutlineFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "scenariooutline.feature")); - } - - [Test] - public void CanGenerateSimpleFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "simple.feature")); - } - - [Test] - public void CanGenerateTableargumentFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "tableargument.feature")); - } - - [Test] - public void CanGenerateTagsFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "tags.feature")); - } - - [Test] - public void CanGenerateWhitespacesFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "whitespaces.feature")); - } - - [Test] - public void CanGeneratebackgroundFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "background.feature")); - } - - [Test] - public void CanGeneratebackgroundWithTitleFeature() - { - string folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); - CanGenerateFromFile(Path.Combine(folder, "background_withtitle.feature")); - } - } -} \ No newline at end of file + [TestFixture] + public class SuccessfulXUnitGenerationTest + { + [Test] + public void CanGenerateFromFiles() + { + foreach (var testFile in TestFileHelper.GetTestFiles()) + { + CanGenerateFromFile(testFile); + } + } + + [Test] + public void CanGenerateSimpleFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "simple.feature")); + } + + [Test] + public void CanGenerateCommentsFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "comments.feature")); + } + + [Test] + public void CanGenerateFeatureheaderFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "featureheader.feature")); + } + + [Test] + public void CanGenerateTagsFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "tags.feature")); + } + + [Test] + public void CanGeneratebackgroundFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "background.feature")); + } + + [Test] + public void CanGeneratebackgroundWithTitleFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "background_withtitle.feature")); + } + + [Test] + public void CanGenerateWhitespacesFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "whitespaces.feature")); + } + + [Test] + public void CanGenerateGivenWhenThenDuplicationFeatureFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "givenwhenthenduplication.feature")); + } + + [Test] + public void CanGenerateButFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "but.feature")); + } + + [Test] + public void CanGenerateMultilinetitleFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "multilinetitle.feature")); + } + + [Test] + public void CanGenerateMultilineargumentFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "multilineargument.feature")); + } + + [Test] + public void CanGenerateTableargumentFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "tableargument.feature")); + } + + [Test] + public void CanGenerateScneriooutlineFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "scenariooutline.feature")); + } + + [Test] + public void CanGenerateMixedGWTFeature() + { + var folder = Path.GetFullPath(Path.Combine(TestFileHelper.GetProjectLocation(), "TestFiles")); + CanGenerateFromFile(Path.Combine(folder, "mixedgivenwhenthen.feature")); + } + + + [Test, TestCaseSource(typeof(TestFileHelper), "GetTestFiles")] + public void CanGenerateFromFile(string fileName) + { + Console.WriteLine(fileName); + SpecFlowLangParser parser = new SpecFlowLangParser(new CultureInfo("en-US")); + using (var reader = new StreamReader(fileName)) + { + Feature feature = parser.Parse(reader); + Assert.IsNotNull(feature); + + string generatedCode = GenerateCodeFromFeature(feature); + Assert.IsNotNull(generatedCode); + + // to regenerate the expected result file: + //GenerateCodeFromFeature(feature, fileName + ".cs"); + + //CompareWithExpectedResult(feature, fileName + ".cs"); + } + } + + private void CompareWithExpectedResult(Feature feature, string expectedResultFileName) + { + string expected = TestFileHelper.ReadFile(expectedResultFileName); + string got = GenerateCodeFromFeature(feature); + + Assert.AreEqual(expected, got); + } + + private void GenerateCodeFromFeature(Feature feature, TextWriter writer) + { + CodeDomHelper codeDomHelper = new CodeDomHelper(GenerationTargetLanguage.CSharp); + XUnitTestGeneratorProvider xUnitTestGeneratorProvider = new XUnitTestGeneratorProvider(); + SpecFlowUnitTestConverter converter = new SpecFlowUnitTestConverter(xUnitTestGeneratorProvider, codeDomHelper, true); + var codeNamespace = converter.GenerateUnitTestFixture(feature, "TestClassName", "Target.Namespace"); + + CSharpCodeProvider codeProvider = new CSharpCodeProvider(); + CodeGeneratorOptions options = new CodeGeneratorOptions(); + codeProvider.GenerateCodeFromNamespace(codeNamespace, writer, options); + } + + private void GenerateCodeFromFeature(Feature feature, string fileName) + { + using (var writer = new StreamWriter(fileName, false, Encoding.UTF8)) + { + GenerateCodeFromFeature(feature, writer); + } + } + + private string GenerateCodeFromFeature(Feature feature) + { + using (var writer = new Utf8StringWriter()) + { + GenerateCodeFromFeature(feature, writer); + return writer.ToString(); + } + } + } +} diff --git a/Tests/ParserTests/TestFrameworks/MbUnitTestActivator.cs b/Tests/ParserTests/TestFrameworks/MbUnitTestActivator.cs deleted file mode 100644 index 1317b2044..000000000 --- a/Tests/ParserTests/TestFrameworks/MbUnitTestActivator.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using NUnit.Framework; - -namespace ParserTests.TestFrameworks -{ - [TestFixture] - public class MbUnitTestActivator - { - private const string TESTFIXTURE_ATTR = "MbUnit.Framework.TestFixtureAttribute"; - private const string TEST_ATTR = "MbUnit.Framework.TestAttribute"; - private const string CATEGORY_ATTR = "MbUnit.Framework.CategoryAttribute"; - private const string TESTSETUP_ATTR = "MbUnit.Framework.SetUpAttribute"; - private const string TESTFIXTURESETUP_ATTR = "MbUnit.Framework.FixtureSetUpAttribute"; - private const string TESTFIXTURETEARDOWN_ATTR = "MbUnit.Framework.FixtureTearDownAttribute"; - private const string TESTTEARDOWN_ATTR = "MbUnit.Framework.TearDownAttribute"; - private const string IGNORE_ATTR = "MbUnit.Framework.IgnoreAttribute"; - private const string DESCRIPTION_ATTR = "MbUnit.Framework.DescriptionAttribute"; - - private const string MSTEST_ASSEMBLY = "MbUnit"; - private const string ASSERT_TYPE = "MbUnit.Framework.Assert"; - - [Test] - public void CanGenerateButFeature() - { - Assert.IsNotNull(Type.GetType(TESTFIXTURE_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(TEST_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(CATEGORY_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(TESTSETUP_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(TESTFIXTURESETUP_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(TESTFIXTURETEARDOWN_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(TESTTEARDOWN_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(IGNORE_ATTR + ",MbUnit")); - Assert.IsNotNull(Type.GetType(DESCRIPTION_ATTR + ",MbUnit")); - - Assert.IsNotNull(Type.GetType(ASSERT_TYPE + "," + MSTEST_ASSEMBLY)); - } - } -} \ No newline at end of file diff --git a/Tests/ParserTests/TestFrameworks/NUnitTestActivator.cs b/Tests/ParserTests/TestFrameworks/NUnitTestActivator.cs deleted file mode 100644 index 7d3c4001b..000000000 --- a/Tests/ParserTests/TestFrameworks/NUnitTestActivator.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using NUnit.Framework; -using TechTalk.SpecFlow.Generator.UnitTestProvider; - -namespace ParserTests.TestFrameworks -{ - [TestFixture] - public class NUnitTestActivator - { - private const string TESTFIXTURE_ATTR = "NUnit.Framework.TestFixtureAttribute"; - private const string TEST_ATTR = "NUnit.Framework.TestAttribute"; - private const string CATEGORY_ATTR = "NUnit.Framework.CategoryAttribute"; - private const string TESTSETUP_ATTR = "NUnit.Framework.SetUpAttribute"; - private const string TESTFIXTURESETUP_ATTR = "NUnit.Framework.TestFixtureSetUpAttribute"; - private const string TESTFIXTURETEARDOWN_ATTR = "NUnit.Framework.TestFixtureTearDownAttribute"; - private const string TESTTEARDOWN_ATTR = "NUnit.Framework.TearDownAttribute"; - private const string IGNORE_ATTR = "NUnit.Framework.IgnoreAttribute"; - private const string DESCRIPTION_ATTR = "NUnit.Framework.DescriptionAttribute"; - - [Test] - public void CanGenerateButFeature() - { - Assert.IsNotNull(Type.GetType(TESTFIXTURE_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(TEST_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(CATEGORY_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(TESTSETUP_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(TESTFIXTURESETUP_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(TESTFIXTURETEARDOWN_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(TESTTEARDOWN_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(IGNORE_ATTR + ",nunit.framework")); - Assert.IsNotNull(Type.GetType(DESCRIPTION_ATTR + ",nunit.framework")); - } - } -} diff --git a/lib/gallio/Gallio.dll b/lib/gallio/Gallio.dll deleted file mode 100644 index dec207217..000000000 Binary files a/lib/gallio/Gallio.dll and /dev/null differ diff --git a/lib/mbunit/MbUnit.dll b/lib/mbunit/MbUnit.dll deleted file mode 100644 index ed7df98dd..000000000 Binary files a/lib/mbunit/MbUnit.dll and /dev/null differ