Beispiel #1
0
        public void DracoonNetIOException_Constructor1()
        {
            // ARRANGE

            // ACT
            DracoonNetIOException exc = new DracoonNetIOException();

            // ASSERT
            Assert.IsAssignableFrom <DracoonException>(exc);
            Assert.IsAssignableFrom <Exception>(exc);
        }
Beispiel #2
0
        public void DracoonNetIOException_Constructor2()
        {
            // ARRANGE
            string message = "A exception message";

            // ACT
            DracoonNetIOException exc = new DracoonNetIOException(message);

            // ASSERT
            Assert.IsAssignableFrom <DracoonException>(exc);
            Assert.IsAssignableFrom <Exception>(exc);
            Assert.Equal(message, exc.Message);
        }
Beispiel #3
0
        public void DracoonNetIOException_Constructor3()
        {
            // ARRANGE
            string    message = "A exception message";
            Exception cause   = new Exception("A other message");

            // ACT
            DracoonNetIOException exc = new DracoonNetIOException(message, cause);

            // ASSERT
            Assert.IsAssignableFrom <DracoonException>(exc);
            Assert.IsAssignableFrom <Exception>(exc);
            Assert.Equal(message, exc.Message);
            Assert.Equal(cause, exc.InnerException);
        }