public override void OneTimeSetup() { _customizationNodeInstanceType = typeof(CustomizationNode); _customizationNodeInstanceFixture = this.Create <CustomizationNode>(true); _customizationNodeInstance = _customizationNodeInstanceFixture ?? this.Create <CustomizationNode>(false); CurrentInstance = _customizationNodeInstanceFixture; ConfigureIgnoringTests(); // Configure ignoring tests. }
public void AUT_CustomizationNode_Constructor_Instantiation_With_Parameter_Test() { // Arrange var builder = this.CreateType <ISpecimenBuilder>(); CustomizationNode instance = null; Exception creationException = null; // Act Action createAction = () => instance = new CustomizationNode(builder); creationException = ActionAnalyzer.GetActionException(createAction); // Assert instance.ShouldNotBeNull(); _customizationNodeInstance.ShouldNotBeNull(); _customizationNodeInstanceFixture.ShouldNotBeNull(); Should.NotThrow(createAction); }