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/AssemblyInitialization.cs

36 lines
716 B
C#

8 years ago
using System;
using System.Data.Common;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace System.Data.Jet.Test
{
[TestClass]
public class AssemblyInitialization
{
public static DbConnection Connection;
[AssemblyInitialize]
static public void AssemblyInitialize(TestContext testContext)
{
// This is the only reason why we include the Provider
JetConfiguration.ShowSqlStatements = true;
Connection = Helpers.GetJetConnection();
}
[AssemblyCleanup]
static public void AssemblyCleanup()
{
if (Connection != null)
Connection.Dispose();
}
}
}