Beispiel #1
0
 public override void OneTimeSetup()
 {
     _nullRecursionGuardInstanceType    = typeof(NullRecursionGuard);
     _nullRecursionGuardInstanceFixture = this.Create <NullRecursionGuard>(true);
     _nullRecursionGuardInstance        = _nullRecursionGuardInstanceFixture ?? this.Create <NullRecursionGuard>(false);
     CurrentInstance = _nullRecursionGuardInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
Beispiel #2
0
        public void AUT_NullRecursionGuard_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var builder = this.CreateType <ISpecimenBuilder>();
            NullRecursionGuard instance          = null;
            Exception          creationException = null;

            // Act
            Action createAction = () => instance = new NullRecursionGuard(builder);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _nullRecursionGuardInstance.ShouldNotBeNull();
            _nullRecursionGuardInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }