/// <summary> /// Initializes a new instance of the <see cref="Fixture"/> class with the supplied engine parts. /// </summary> public Fixture(DefaultRelays engineParts) : this( engineParts != null ? new CompositeSpecimenBuilder(engineParts) : throw new ArgumentNullException(nameof(engineParts)), new MultipleRelay()) { }
public override void OneTimeSetup() { _defaultRelaysInstanceType = typeof(DefaultRelays); _defaultRelaysInstanceFixture = this.Create <DefaultRelays>(true); _defaultRelaysInstance = _defaultRelaysInstanceFixture ?? this.Create <DefaultRelays>(false); CurrentInstance = _defaultRelaysInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_DefaultRelays_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange DefaultRelays instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }
/// <summary> /// Initializes a new instance of the <see cref="Fixture"/> class with the supplied engine /// parts. /// </summary> public Fixture(DefaultRelays engineParts) : this(new CompositeSpecimenBuilder(engineParts), new MultipleRelay()) { }