public void HashCalculationForOneTable()
        {
            //Arrange
            CreateSchemaTask.Create(Connection, "hash");
            List <TableColumn> columns = new List <TableColumn>()
            {
                new TableColumn("value", "int")
            };

            CreateTableTask.Create(Connection, "DatabaseHash", columns);

            //Act
            string hash = CalculateDatabaseHashTask.Calculate(Connection, new List <string>()
            {
                "hash"
            });
            string hashAgain = CalculateDatabaseHashTask.Calculate(Connection, new List <string>()
            {
                "hash"
            });

            //Assert
            Assert.Equal(hash, hashAgain);
            Assert.Equal("DA39A3EE5E6B4B0D3255BFEF95601890AFD80709", hash);
        }
 public void NotSupportedWithSQLite()
 {
     Assert.Throws <ETLBoxNotSupportedException>(
         () => CalculateDatabaseHashTask.Calculate(SQLiteConnection, new List <string>()
     {
         "hash"
     })
         );;
 }
        public void TestHashCalculationForOneTable()
        {
            List <TableColumn> columns = new List <TableColumn>()
            {
                new TableColumn("value", "int")
            };

            CreateTableTask.Create("test.Table1", columns);

            string hash = CalculateDatabaseHashTask.Calculate(new List <string>()
            {
                "test"
            });
            string hashAgain = CalculateDatabaseHashTask.Calculate(new List <string>()
            {
                "test"
            });

            Assert.AreEqual(hash, hashAgain);
            Assert.AreEqual("A35318F3AE62DD0BA0607BB24F2103CFE77661B3", hash);
        }