public void WrongObject_ProperInnerMessage() { var innerEx = new AzmiException("inner-text"); var outerEx = AzmiException.WrongObject(innerEx); Assert.Equal("inner-text", outerEx.InnerException.Message); }
public void WrongObject_ProperInnerType() { var innerEx = new ArgumentException("inner-text"); var outerEx = AzmiException.WrongObject(innerEx); Assert.IsType <ArgumentException>(outerEx.InnerException); }
public void WrongObject_Works() { Assert.NotNull(AzmiException.WrongObject(null)); }