Beispiel #1
0
 public override void OneTimeSetup()
 {
     _noDataAnnotationsCustomizationInstanceType    = typeof(NoDataAnnotationsCustomization);
     _noDataAnnotationsCustomizationInstanceFixture = this.Create <NoDataAnnotationsCustomization>(true);
     _noDataAnnotationsCustomizationInstance        = _noDataAnnotationsCustomizationInstanceFixture ?? this.Create <NoDataAnnotationsCustomization>(false);
     CurrentInstance = _noDataAnnotationsCustomizationInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
Beispiel #2
0
        public void AUT_NoDataAnnotationsCustomization_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            NoDataAnnotationsCustomization instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
        }