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