コード例 #1
0
 public override void OneTimeSetup()
 {
     _freezingCustomizationInstanceType    = typeof(FreezingCustomization);
     _freezingCustomizationInstanceFixture = this.Create <FreezingCustomization>(true);
     _freezingCustomizationInstance        = _freezingCustomizationInstanceFixture ?? this.Create <FreezingCustomization>(false);
     CurrentInstance = _freezingCustomizationInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
コード例 #2
0
        public void AUT_FreezingCustomization_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var targetType = this.CreateType <Type>();
            FreezingCustomization instance          = null;
            Exception             creationException = null;

            // Act
            Action createAction = () => instance = new FreezingCustomization(targetType);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _freezingCustomizationInstance.ShouldNotBeNull();
            _freezingCustomizationInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }