コード例 #1
0
 public override void OneTimeSetup()
 {
     _lazyRelayInstanceType    = typeof(LazyRelay);
     _lazyRelayInstanceFixture = this.Create <LazyRelay>(true);
     _lazyRelayInstance        = _lazyRelayInstanceFixture ?? this.Create <LazyRelay>(false);
     CurrentInstance           = _lazyRelayInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
コード例 #2
0
        public void AUT_LazyRelay_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            LazyRelay instance = null;

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

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