You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
766 B
C#
29 lines
766 B
C#
using System;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace System.Data.Jet.Test
|
|
{
|
|
[TestClass]
|
|
public class DdlTest
|
|
{
|
|
[TestMethod]
|
|
public void CheckIfTablesExists()
|
|
{
|
|
|
|
var queries = Helpers.GetQueries(System.Data.Jet.Test.Properties.Resources.CheckIfTableExistsTestQueries);
|
|
|
|
using (var connection = Helpers.GetJetConnection())
|
|
{
|
|
connection.Open();
|
|
Helpers.Execute(connection, queries[0]);
|
|
|
|
bool exists = ((JetConnection)AssemblyInitialization.Connection).TableExists("CheckIfTableExistsTable");
|
|
Assert.IsTrue(exists);
|
|
|
|
Helpers.Execute(connection, queries[1]);
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|