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)); }
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)); }
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)); }