public override void OneTimeSetup() { _throwingRecursionBehaviorInstanceType = typeof(ThrowingRecursionBehavior); _throwingRecursionBehaviorInstanceFixture = this.Create <ThrowingRecursionBehavior>(true); _throwingRecursionBehaviorInstance = _throwingRecursionBehaviorInstanceFixture ?? this.Create <ThrowingRecursionBehavior>(false); CurrentInstance = _throwingRecursionBehaviorInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_ThrowingRecursionBehavior_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange ThrowingRecursionBehavior instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }