public override void OneTimeSetup() { _throwingRecursionHandlerInstanceType = typeof(ThrowingRecursionHandler); _throwingRecursionHandlerInstanceFixture = this.Create <ThrowingRecursionHandler>(true); _throwingRecursionHandlerInstance = _throwingRecursionHandlerInstanceFixture ?? this.Create <ThrowingRecursionHandler>(false); CurrentInstance = _throwingRecursionHandlerInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_ThrowingRecursionHandler_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange ThrowingRecursionHandler instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }