public Ctor_message_innerException() { _innerException = new ArgumentNullException("parameter"); _exception = new BrokenRuleException<Object>("message", _innerException); }
public When_serializing_with_message() { _exception = new BrokenRuleException<Object>("message"); _exceptionDeserialized = _exception.SerializeDeserialize(); }
public Ctor_brokenRules_entity() { _brokenRules = new List<Rule<Object>>(new[] { new Rule<Object>(o => o != null, "o != null") }); _entity = new Object(); _exception = new BrokenRuleException<Object>(_brokenRules, _entity); }
public When_serializing() { _exception = new BrokenRuleException<Object>(); }
public When_serializing_default_state() { _exception = new BrokenRuleException<Object>(); _exceptionDeserialized = _exception.SerializeDeserialize(); }
public Ctor_message() { _exception = new BrokenRuleException<Object>("message"); }
public Ctor_default() { _exception = new BrokenRuleException<Object>(); }
public When_serializing_with_rules() { _exception = new BrokenRuleException<Object>(new[] { new Rule<Object>(o => o != null) }, new Object()); _exceptionDeserialized = _exception.SerializeDeserialize(); }