예제 #1
0
 public override void OneTimeSetup()
 {
     _favorListsAttributeInstanceType    = typeof(FavorListsAttribute);
     _favorListsAttributeInstanceFixture = this.Create <FavorListsAttribute>(true);
     _favorListsAttributeInstance        = _favorListsAttributeInstanceFixture ?? this.Create <FavorListsAttribute>(false);
     CurrentInstance = _favorListsAttributeInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
예제 #2
0
        public void AUT_FavorListsAttribute_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            FavorListsAttribute instance = null;

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

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