public override void OneTimeSetup() { _missingParametersSupplyingStaticMethodFactoryInstanceType = typeof(MissingParametersSupplyingStaticMethodFactory); _missingParametersSupplyingStaticMethodFactoryInstanceFixture = this.Create <MissingParametersSupplyingStaticMethodFactory>(true); _missingParametersSupplyingStaticMethodFactoryInstance = _missingParametersSupplyingStaticMethodFactoryInstanceFixture ?? this.Create <MissingParametersSupplyingStaticMethodFactory>(false); CurrentInstance = _missingParametersSupplyingStaticMethodFactoryInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_MissingParametersSupplyingStaticMethodFactory_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange MissingParametersSupplyingStaticMethodFactory instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }