示例#1
0
 public override void OneTimeSetup()
 {
     _noAutoPropertiesAttributeInstanceType    = typeof(NoAutoPropertiesAttribute);
     _noAutoPropertiesAttributeInstanceFixture = this.Create <NoAutoPropertiesAttribute>(true);
     _noAutoPropertiesAttributeInstance        = _noAutoPropertiesAttributeInstanceFixture ?? this.Create <NoAutoPropertiesAttribute>(false);
     CurrentInstance = _noAutoPropertiesAttributeInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
示例#2
0
        public void AUT_NoAutoPropertiesAttribute_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            NoAutoPropertiesAttribute instance = null;

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

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