示例#1
0
        public void CanReadBasicSchemaInfo()
        {
            // this is the fun part.. this test should fail until the schema reading code works
            // also assume the target database contains schema described in TestMigration
            using (new SqliteTestTable(Processor, null, "id int"))
            {
                try
                {
                    var defs = SchemaDumper.ReadDbSchema();

                    var testWriter      = new SchemaTestWriter();
                    var output          = GetOutput(testWriter, defs);
                    var expectedMessage = testWriter.GetMessage(1, 1, 0, 0);

                    output.ShouldBe(expectedMessage);
                }
                catch (Exception ex)
                {
                    System.Console.WriteLine("CanReadBasicSchemaInfo exception :" + ex.StackTrace);
                    throw;
                }
            }
        }