コード例 #1
0
        public static void ExitCode_PropertyGet_MatchesCtorArg()
        {
            const int exitCode = 123;
            var       ex       = new GraphvizException(exitCode, "Test");

            Assert.That(ex.ExitCode, Is.EqualTo(exitCode));
        }
コード例 #2
0
        public static void Message_PropertyGet_MatchesCtorArg()
        {
            const string message = "Test error message";
            var          ex      = new GraphvizException(123, message);

            Assert.That(ex.Message, Is.EqualTo(message));
        }