Example #1
0
        public virtual void Can_Serialize_ExceptionWithMessage()
        {
            var expected = new SampleExceptions.BasicException("Some message");
            var actual   = AssertAndReturn(expected);

            AssertException(expected, actual);
        }
Example #2
0
        public virtual void Can_Serialize_ExceptionWithMessageAndInnerException()
        {
            var expected = new SampleExceptions.BasicException("Some message", new ArgumentNullException());
            var actual   = AssertAndReturn(expected);

            AssertException(expected, actual);
        }
Example #3
0
        public virtual void Can_Serialize_Exception()
        {
            var exception = new SampleExceptions.BasicException();

            AssertAndReturn(exception).Should().BeOfType <SampleExceptions.BasicException>();
        }