public void PutFileWrongUsage() { SQLite3Query sqlite = new SQLite3Query(); Assert.IsTrue(sqlite.TestConnection(connectionString, true, false)); Assert.IsFalse(sqlite.PutFile(Environment.CurrentDirectory + "\\TestDataStorage\\test_image_picture-128.png", "insert into test (f1, f4) values (@f1);", new SQLiteParameter("@f1", "file_test"))); }
public void PutFileNotExists() { SQLite3Query sqlite = new SQLite3Query(); Assert.IsTrue(sqlite.TestConnection(connectionString, true, false)); Assert.IsFalse(sqlite.PutFile(Environment.CurrentDirectory + "\\TestDataStorage\\not_exists_file.png", "insert into test (f1, f4) values (@f1, @file);", new SQLiteParameter("@f1", "file_test"))); }