예제 #1
0
        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;
        }
예제 #2
0
        string GetSchemaExportPath()
        {
            var schemaExportDir = TestFilesystem.GetTestTemporaryDirectory <NHibernateSchemaExportingDatabaseCreatorTests>();

            if (schemaExportDir != null)
            {
                return(Path.Combine(schemaExportDir.FullName, SchemaExportFilename));
            }
            else
            {
                return(SchemaExportFilename);
            }
        }