コード例 #1
0
 public override void OneTimeSetup()
 {
     _stableFiniteSequenceRelayInstanceType    = typeof(StableFiniteSequenceRelay);
     _stableFiniteSequenceRelayInstanceFixture = this.Create <StableFiniteSequenceRelay>(true);
     _stableFiniteSequenceRelayInstance        = _stableFiniteSequenceRelayInstanceFixture ?? this.Create <StableFiniteSequenceRelay>(false);
     CurrentInstance = _stableFiniteSequenceRelayInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
コード例 #2
0
        public void AUT_StableFiniteSequenceRelay_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            StableFiniteSequenceRelay instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
        }