public override void OneTimeSetup() { _specimenCreatedEventArgsInstanceType = typeof(SpecimenCreatedEventArgs); _specimenCreatedEventArgsInstanceFixture = this.Create <SpecimenCreatedEventArgs>(true); _specimenCreatedEventArgsInstance = _specimenCreatedEventArgsInstanceFixture ?? this.Create <SpecimenCreatedEventArgs>(false); CurrentInstance = _specimenCreatedEventArgsInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_SpecimenCreatedEventArgs_Constructor_Instantiation_With_Parameter_Test() { // Arrange var request = this.CreateType <object>(); var specimen = this.CreateType <object>(); var depth = this.CreateType <int>(); SpecimenCreatedEventArgs instance = null; Exception creationException = null; // Act Action createAction = () => instance = new SpecimenCreatedEventArgs(request, specimen, depth); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _specimenCreatedEventArgsInstance.ShouldNotBeNull(); _specimenCreatedEventArgsInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }