Blog.Common.Contracts.Tests.BaseContractTest.ShouldGenerateErrorWithException C# (CSharp) Method

ShouldGenerateErrorWithException() private method

private ShouldGenerateErrorWithException ( ) : void
return void
        public void ShouldGenerateErrorWithException()
        {
            var address = new Address().GenerateError<Address>(1, "foobar", new Exception("loremipsum"));
            Assert.AreEqual(1, address.Error.Id);
            Assert.AreEqual("foobar", address.Error.Message);
            Assert.AreEqual("loremipsum", address.Error.Exception.Message);
        }
    }