Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

Gallio fails with TestFixture for GenericClass #7

@AstralisSomnium

Description

@AstralisSomnium

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions