public override void OneTimeSetup() { _factoryMethodQueryInstanceType = typeof(FactoryMethodQuery); _factoryMethodQueryInstanceFixture = this.Create <FactoryMethodQuery>(true); _factoryMethodQueryInstance = _factoryMethodQueryInstanceFixture ?? this.Create <FactoryMethodQuery>(false); CurrentInstance = _factoryMethodQueryInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_FactoryMethodQuery_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange FactoryMethodQuery instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }