Exemplo n.º 1
0
        public void Csv_2_Table_from_file_readed()
        {
            // Arrange
            var csvString = System.IO.File.ReadAllText(@"goodData.csv");

            // Act
            var isTable = SpecflowHelpers.Csv2Table(csvString);

            //Assert
            Assert.Empty(SpecflowHelpers.CompareTables(isTable, shouldTable));
        }
Exemplo n.º 2
0
        public void Compare_Tables_with_regex()
        {
            // Arrange
            var csvString = "head1,head2,head3\r\nval1,regex:val[0-9],val3";

            // Act
            var isTable = SpecflowHelpers.Csv2Table(csvString);

            //Assert
            Assert.Empty(SpecflowHelpers.CompareTables(isTable, shouldTable));
        }
Exemplo n.º 3
0
        public void Csv2Table_with_identic_table()
        {
            // Arrange
            var csvString = "head1,head2,head3\r\nval1,val2,val3";

            // Act
            var isTable = SpecflowHelpers.Csv2Table(csvString);

            //Assert
            Assert.Empty(SpecflowHelpers.CompareTables(isTable, shouldTable));
        }