public override void OneTimeSetup() { _typeArgumentsCannotBeInferredExceptionInstanceType = typeof(TypeArgumentsCannotBeInferredException); _typeArgumentsCannotBeInferredExceptionInstanceFixture = this.Create <TypeArgumentsCannotBeInferredException>(true); _typeArgumentsCannotBeInferredExceptionInstance = _typeArgumentsCannotBeInferredExceptionInstanceFixture ?? this.Create <TypeArgumentsCannotBeInferredException>(false); CurrentInstance = _typeArgumentsCannotBeInferredExceptionInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_TypeArgumentsCannotBeInferredException_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange TypeArgumentsCannotBeInferredException instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }