Example #1
0
            [InlineData("''")]         // Empty string
            public void Query_is_unchanged_after_it_is_split_and_rejoined(string sqlQuery)
            {
                // Act
                var result = new Util.SqlQuery.Split(sqlQuery).Join();

                // Assert
                Assert.Equal(sqlQuery, result);
            }
Example #2
0
            [InlineData(1, "''")]         // Empty string
            public void Query_is_split_into_correct_number_of_parts(int expectedPartCount, string sqlQuery)
            {
                // Act
                var result = new Util.SqlQuery.Split(sqlQuery).Parts;

                // Assert
                Assert.Equal(expectedPartCount, result.Count);
            }