コード例 #1
0
 public override void OneTimeSetup()
 {
     _constrainedStringGeneratorInstanceType    = typeof(ConstrainedStringGenerator);
     _constrainedStringGeneratorInstanceFixture = this.Create <ConstrainedStringGenerator>(true);
     _constrainedStringGeneratorInstance        = _constrainedStringGeneratorInstanceFixture ?? this.Create <ConstrainedStringGenerator>(false);
     CurrentInstance = _constrainedStringGeneratorInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
コード例 #2
0
        public void AUT_ConstrainedStringGenerator_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            ConstrainedStringGenerator instance = null;

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

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