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.
EntityFrameworkCore.Jet/test/System.Data.Jet.Test/DdlTest.cs

29 lines
766 B
C#

8 years ago
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]);
}
}
}
}