Exemplo n.º 1
0
            public void WrongObject_ProperInnerMessage()
            {
                var innerEx = new AzmiException("inner-text");
                var outerEx = AzmiException.WrongObject(innerEx);

                Assert.Equal("inner-text", outerEx.InnerException.Message);
            }
Exemplo n.º 2
0
            public void WrongObject_ProperInnerType()
            {
                var innerEx = new ArgumentException("inner-text");
                var outerEx = AzmiException.WrongObject(innerEx);

                Assert.IsType <ArgumentException>(outerEx.InnerException);
            }
Exemplo n.º 3
0
 public void WrongObject_Works()
 {
     Assert.NotNull(AzmiException.WrongObject(null));
 }