Пример #1
0
        public void ResultStatusCreateSuccessTest()
        {
            ResultStatus status = new ResultStatus(true);

            Assert.IsNotNull(status);
            Assert.IsTrue(status.Success);
            Assert.AreEqual(WebExceptionStatus.Success, status.WebStatus);
        }
Пример #2
0
        public void ResultStatusCreateErrorTest()
        {
            ResultStatus status = new ResultStatus("test fail", null);

            Assert.IsNotNull(status);
            Assert.IsFalse(status.Success);
            Assert.AreEqual("test fail", status.ErrorMessage);
        }