public class ComposedFixture : TestFixture, IEnumerable<KeyValuePair<string, ITestFixture>>, IEnumerable
Public Class ComposedFixture Inherits TestFixture Implements IEnumerable(Of KeyValuePair(Of String, ITestFixture)), IEnumerable
public ref class ComposedFixture : public TestFixture, IEnumerable<KeyValuePair<String^, ITestFixture^>>, IEnumerable
type ComposedFixture = class inherit TestFixture interface IEnumerable<KeyValuePair<string, ITestFixture>> interface IEnumerable end
Thetype exposes the following members.
Returns the subfixtures.
Returns the number of fixtures in the set.
Returns true if the Start(Action) method is running.(Inherited from TestFixture.)
Returns true if the instance has been disposed.(Inherited from TestFixture.)
Returns true if the fixture has been initialized.(Inherited from TestFixture.)
Returns the fixture at the specified index (based on the order the fixture was added.
Returns the named test fixture.
Used by unit test classes to persist arbitrary name/value information across individual unit tests.(Inherited from TestFixture.)
Adds a named ITestFixture.
Adds a named NeonServiceFixtureTService fixture.
Verifies that the fixture instance has not been disposed.(Inherited from TestFixture.)
Verifies that the fixture instance's Start(Action) method is executing.(Inherited from TestFixture.)
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from TestFixture.)
Disposes all fixtures in the set.(Overrides TestFixtureDispose(Boolean).)
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Enumerates the named test fixtures in the set.
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
(Inherited from TestFixture.)
Called when an already started fixture is being restarted. This provides the fixture an opportunity to do some custom initialization. This base method does nothing.
INTERNAL USE ONLY: Resets the fixture state.(Overrides TestFixtureReset.)
Starts the fixture if it hasn't already been started including invoking the optional Action when the first time Start(Action) is called for a fixture instance.(Overrides TestFixtureStart(Action).)
Returns a string that represents the current object.(Inherited from Object.)
Determines whether an IEnumerable is empty.(Defined by IEnumerableExtensions.)
Selects one or more randomly selected items from an enumeration.(Defined by IEnumerableExtensions.)
IMPORTANT: The base Neon TestFixture implementation DOES NOT support parallel test execution because fixtures may impact global machine state like starting a Docker container, modifying the local DNS hosts file, configuring environment variables or initializing a test database.
You should explicitly disable parallel execution in all test assemblies that rely on test fixtures by adding a C# file called AssemblyInfo.cs with:
[assembly: CollectionBehavior(DisableTestParallelization = true, MaxParallelThreads = 1)]
Derived test fixtures that modify global machine or other environmental state must implement a public static void EnsureReset() method resets the state to a reasonable default. These will be reflected and called when the first TestFixture is created by the test runner for every test class.