Esempio n. 1
0
        public void RecognizeOperationTest2()
        {
            string chunk  = @"select";
            var    actual = LogParserHelper.RecognizeOperation(chunk);

            Assert.AreEqual(Operations.Select, actual);
        }
Esempio n. 2
0
        public void RecognizeOperationTest()
        {
            string chunk  = @"INSERT INTO table1 (date, p_id, p_id, id) VALUES (:p0, :p1, :p2, :p3);:p0 = 2015-01-15 10:41:06 [Type: DateTime (0)], :p1 = 38931 [Type: Int64 (0)], :p2 = 5151165 [Type: Int64 (0)], :p3 = 30472839 [Type: Int64 (0)]";
            var    actual = LogParserHelper.RecognizeOperation(chunk);

            Assert.AreEqual(Operations.Insert, actual);
        }