public override void OneTimeSetup() { _strictlyMonotonicallyIncreasingDateTimeGeneratorInstanceType = typeof(StrictlyMonotonicallyIncreasingDateTimeGenerator); _strictlyMonotonicallyIncreasingDateTimeGeneratorInstanceFixture = this.Create <StrictlyMonotonicallyIncreasingDateTimeGenerator>(true); _strictlyMonotonicallyIncreasingDateTimeGeneratorInstance = _strictlyMonotonicallyIncreasingDateTimeGeneratorInstanceFixture ?? this.Create <StrictlyMonotonicallyIncreasingDateTimeGenerator>(false); CurrentInstance = _strictlyMonotonicallyIncreasingDateTimeGeneratorInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_StrictlyMonotonicallyIncreasingDateTimeGenerator_Constructor_Instantiation_With_Parameter_Test() { // Arrange var seed = this.CreateType <DateTime>(); StrictlyMonotonicallyIncreasingDateTimeGenerator instance = null; Exception creationException = null; // Act Action createAction = () => instance = new StrictlyMonotonicallyIncreasingDateTimeGenerator(seed); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _strictlyMonotonicallyIncreasingDateTimeGeneratorInstance.ShouldNotBeNull(); _strictlyMonotonicallyIncreasingDateTimeGeneratorInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }