示例#1
0
        public static void TableName_PropertyGet_MatchesCtorArg()
        {
            var          tableName    = Identifier.CreateQualifiedIdentifier("test_table");
            const string sql          = "select * from test_table";
            const string errorMessage = "unknown error";
            var          ex           = new SqliteTableParsingException(tableName, sql, errorMessage);

            Assert.That(ex.TableName, Is.EqualTo(tableName));
        }
示例#2
0
        public static void ParsingErrorMessage_PropertyGet_MatchesCtorArg()
        {
            const string tableName    = "test_table";
            const string sql          = "select * from test_table";
            const string errorMessage = "unknown error";
            var          ex           = new SqliteTableParsingException(tableName, sql, errorMessage);

            Assert.That(ex.ParsingErrorMessage, Is.EqualTo(errorMessage));
        }
示例#3
0
        public static void Message_PropertyGet_ConstructsExpectedMessage(string schema, string localName, string expectedOutput)
        {
            var          tableName    = Identifier.CreateQualifiedIdentifier(schema, localName);
            const string sql          = "select * from test_table";
            const string errorMessage = "unknown error";
            var          ex           = new SqliteTableParsingException(tableName, sql, errorMessage);

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