Beispiel #1
0
        public void InnerExceptionTest()
        {
            var    user = new User().MockData();
            object d    = user;

            d.Should().Be(user);

            var e   = new ArgumentNullException("a", new NotSupportedException("b", new TimeoutException("c")));
            var msg = string.Join(",", e.GetInnerExceptionAsList());

            msg.Should().Be("a,b,c");
        }
Beispiel #2
0
 public void InnerExceptionTest()
 {
     var e = new ArgumentNullException("a", new NotSupportedException("b", new TimeoutException("c")));
     var msg = string.Join(",", e.GetInnerExceptionAsList());
     msg.Should().Be("a,b,c");
 }