public void Setup() { var basePath = TestFilesystem.GetTestTemporaryDirectory <SqliteDatabaseTesterTests>(); invalidDbPath = Path.Combine(basePath.FullName, NonExistentDirectoryName, DatabaseFilename); validDbPath = Path.Combine(basePath.FullName, DatabaseFilename); var monoRuntimeDetector = new MonoRuntimeDetector(); providerName = monoRuntimeDetector.IsExecutingWithMono()? MonoSqliteProviderName : typeof(System.Data.SQLite.SQLiteFactory).Namespace; }
string GetSchemaExportPath() { var schemaExportDir = TestFilesystem.GetTestTemporaryDirectory <NHibernateSchemaExportingDatabaseCreatorTests>(); if (schemaExportDir != null) { return(Path.Combine(schemaExportDir.FullName, SchemaExportFilename)); } else { return(SchemaExportFilename); } }