示例#1
0
        public void Should_split_script_into_statements(string file, int stmtCount = 1)
        {
            // Arrange
            string sql = ReadFile(file);

            // Act
            var statements = new Splitter().Process(sql);

            // Assert
            statements.Count.Should().Be(stmtCount);
            string.Join("", statements.Select(x => x.ToString())).Should().Be(sql);
            statements.All(x => x.NeedsSemicolon == false).Should().BeTrue();
        }