public AssertUserMessageDecorator(IAssertExceptionBlockCreator blockCreator,
                                          ExceptionExpectancyAtAttributeLevel attribute) : base(blockCreator)
        {
            if (attribute == null)
            {
                throw new ArgumentNullException(nameof(attribute));
            }

            _userMessage = attribute.UserMessage;
        }
Exemplo n.º 2
0
 public AssertExceptionMessageDecorator(IAssertExceptionBlockCreator blockCreator,
                                        ExceptionExpectancyAtAttributeLevel attribute) : base(blockCreator)
 {
     _attribute = attribute;
 }
Exemplo n.º 3
0
 public AssignAssertThrowsToLocalVariableDecorator(IAssertExceptionBlockCreator blockCreator)
     : base(blockCreator)
 {
 }
Exemplo n.º 4
0
 public AssertHandlerMethodDecorator(IAssertExceptionBlockCreator blockCreator, string handlerName)
     : base(blockCreator)
 {
     _handlerName = handlerName;
 }
 protected AssertExceptionBlockDecorator(IAssertExceptionBlockCreator blockCreator)
 {
     _blockCreator = blockCreator;
 }