public override void OneTimeSetup() { _currentDateTimeGeneratorInstanceType = typeof(CurrentDateTimeGenerator); _currentDateTimeGeneratorInstanceFixture = this.Create <CurrentDateTimeGenerator>(true); _currentDateTimeGeneratorInstance = _currentDateTimeGeneratorInstanceFixture ?? this.Create <CurrentDateTimeGenerator>(false); CurrentInstance = _currentDateTimeGeneratorInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_CurrentDateTimeGenerator_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange CurrentDateTimeGenerator instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); }