Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (26 sloc) 0.792 kB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Simple.Data.Ado;
using Simple.Data.Ado.Schema;
namespace Simple.Data.TestHelper
public abstract class DatabaseSchemaTestsBase
private DatabaseSchema _schema;
private DatabaseSchema GetSchema()
var adapter = GetDatabase().GetAdapter() as AdoAdapter;
if (adapter == null) Assert.Fail("Expected an ADO-based database adapter.");
return adapter.GetSchema();
protected abstract Database GetDatabase();
protected DatabaseSchema Schema
get { return (_schema ?? (_schema = GetSchema())); }
Jump to Line
Something went wrong with that request. Please try again.