Gallio / mbunit-v3

Gallio and MbUnit v3 Source
Apache License 2.0
86 stars 46 forks source link

Gallio fails with TestFixture for GenericClass #7

Open AstralisSomnium opened 8 years ago

AstralisSomnium commented 8 years ago

If you have for a generic class multiple TestFixtures, how NUnit recommends and you run this test then with Gallio it will throw following exception:

[error] An exception was thrown while exploring an NUnit test assembly. Location: C:\Users\coolOrange\.hudson\jobs\asdftrunk\workspace\bin\Testsasdf.Tests.DLL Reference: asdf.XamlUtilies.Tests, Version=16.0.1077.13667, Culture=neutral, PublicKeyToken=null Details: System.NullReferenceException: Object reference not set to an instance of an object. at NUnit.Core.Builders.NUnitTestFixtureBuilder.BuildSingleFixture(Type type, Attribute attr) at NUnit.Core.Builders.NUnitTestFixtureBuilder.BuildMultipleFixtures(Type type, Attribute[] attrs) at NUnit.Core.Builders.NUnitTestFixtureBuilder.BuildFrom(Type type) at NUnit.Core.Extensibility.SuiteBuilderCollection.BuildFrom(Type type) at NUnit.Core.TestFixtureBuilder.BuildFrom(Type type) at NUnit.Core.Builders.TestAssemblyBuilder.GetFixtures(Assembly assembly, String ns) at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, Boolean autoSuites) at NUnit.Core.Builders.TestAssemblyBuilder.Build(String assemblyName, String testName, Boolean autoSuites) at NUnit.Core.TestSuiteBuilder.Build(TestPackage package) at NUnit.Core.SimpleTestRunner.Load(TestPackage package) at NUnit.Core.ProxyTestRunner.Load(TestPackage package) at NUnit.Core.ProxyTestRunner.Load(TestPackage package) at NUnit.Core.RemoteTestRunner.Load(TestPackage package) at Gallio.NUnitAdapter.Model.NUnitNativeTestExplorerEngine.CreateTestRunner(String assemblyLocation) at Gallio.NUnitAdapter.Model.NUnitNativeTestExplorerEngine.BuildAssemblyTest(Test parent) at Gallio.NUnitAdapter.Model.NUnitNativeTestExplorerEngine.ExploreAssembly(Boolean skipChildren) at Gallio.NUnitAdapter.Model.NUnitTestExplorer.ExploreImpl(IReflectionPolicy reflectionPolicy, ICodeElementInfo codeElement)