/// <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())
 {
 }
Beispiel #2
0
 public override void OneTimeSetup()
 {
     _defaultRelaysInstanceType    = typeof(DefaultRelays);
     _defaultRelaysInstanceFixture = this.Create <DefaultRelays>(true);
     _defaultRelaysInstance        = _defaultRelaysInstanceFixture ?? this.Create <DefaultRelays>(false);
     CurrentInstance = _defaultRelaysInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
Beispiel #3
0
        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();
        }
Beispiel #4
0
 /// <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())
 {
 }