Esempio n. 1
0
        public void EndProgramExceptionWithMessageExceptionTest()
        {
            var e = new EndProgramException("It went wrong");

            Assert.IsTrue(e.Id == EndProgramException.EndProgram);
            Assert.IsTrue(e.Message == "It went wrong");
            Assert.IsTrue(e.ToString() == "It went wrong");
        }
Esempio n. 2
0
        public void EndProgramExceptionBasicExceptionTest()
        {
            var e = new EndProgramException();

            Assert.IsTrue(e.Id == EndProgramException.EndProgram);
            Assert.IsTrue(e.Message == "End Program invoked");
            Assert.IsTrue(e.ToString() == "End Program invoked");
        }