Example #1
0
        public void EndTaskExceptionWithMessageExceptionTest()
        {
            var e = new EndTaskException("It went wrong");

            Assert.IsTrue(e.Id == EndTaskException.EndTask);
            Assert.IsTrue(e.Message == "It went wrong");
            Assert.IsTrue(e.ToString() == "It went wrong");
        }
Example #2
0
        public void EndTaskExceptionBasicExceptionTest()
        {
            var e = new EndTaskException();

            Assert.IsTrue(e.Id == EndTaskException.EndTask);
            Assert.IsTrue(e.Message == "End Task invoked");
            Assert.IsTrue(e.ToString() == "End Task invoked");
        }