public override void OneTimeSetup() { _constrainedStringGeneratorInstanceType = typeof(ConstrainedStringGenerator); _constrainedStringGeneratorInstanceFixture = this.Create <ConstrainedStringGenerator>(true); _constrainedStringGeneratorInstance = _constrainedStringGeneratorInstanceFixture ?? this.Create <ConstrainedStringGenerator>(false); CurrentInstance = _constrainedStringGeneratorInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
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(); }