-
Notifications
You must be signed in to change notification settings - Fork 158
IFixtureBuilder Interface
This interface is used by attributes that know how to build a fixture from a user class. IFixtureBuilder
is defined as follows:
public interface IFixtureBuilder
{
TestSuite BuildFrom(Type type);
}
Custom fixture builders should examine the provided Type and return an appropriate TestFixture based on it. If the fixture is intended to be an NUnit TestFixture, then the helper class NUnitTestFixtureBuilder
may be used to create it.
The following NUnit attributes currently implement this interface:
TestFixtureAttribute
SetUpFixtureAttribute
It would make more sense for this interface method to return
TestFixture
rather thanTestSuite
. We useTestSuite
because it is the common base for bothTestFixture
andSetupFixture
. In a future version, we will try to adjust the hierarchy so that all suites based on a class are derived fromTestFixture
.
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers