public virtual void Can_Serialize_ExceptionWithMessage() { var expected = new SampleExceptions.BasicException("Some message"); var actual = AssertAndReturn(expected); AssertException(expected, actual); }
public virtual void Can_Serialize_ExceptionWithMessageAndInnerException() { var expected = new SampleExceptions.BasicException("Some message", new ArgumentNullException()); var actual = AssertAndReturn(expected); AssertException(expected, actual); }
public virtual void Can_Serialize_Exception() { var exception = new SampleExceptions.BasicException(); AssertAndReturn(exception).Should().BeOfType <SampleExceptions.BasicException>(); }