public void TestSqlFooterRule3() { string test = "DOCSSQL: [0655B490] ODBCHandle::ClearResults(): 1 row(s) fetchedDOCSSQL: [0655ABD8] SQLObject at 0C1D11A0 released connection back to pool"; var rule = new SqlFooterRule(); var res = rule.Apply(test); Assert.IsNotNull(res); Assert.AreEqual("0655ABD8", res.Key); Assert.AreEqual("0C1D11A0", res.Values[ValueKeys.Sec]); Assert.AreEqual(LineType.Footer, res.LineType); Assert.AreEqual(EventType.Sql, res.EventType); Assert.IsNull(res.RequiredBlockRule); }
public void TestSqlFooterRule4() { string test = "DOCSSQL: [0655B490] SQLObject at 10A1E3C0 acquired existing connection from pool #3DOCSSQL: [0655ABD8] SQLObject at 0AEBA860 released connection back to pool"; var rule = new SqlFooterRule(); var res = rule.Apply(test); Assert.IsNotNull(res); Assert.AreEqual("0655ABD8", res.Key); Assert.AreEqual("0AEBA860", res.Values[ValueKeys.Sec]); Assert.AreEqual(LineType.Footer, res.LineType); Assert.AreEqual(EventType.Sql, res.EventType); Assert.IsNull(res.RequiredBlockRule); }
public void TestSqlFooterRule2() { string test = "DOCSSQL: [13C595F0] SQLObject at 10FC54F0 released connection back to pool"; var rule = new SqlFooterRule(); var res = rule.Apply(test); Assert.IsNotNull(res); Assert.AreEqual("13C595F0", res.Key); Assert.AreEqual("10FC54F0", res.Values[ValueKeys.Sec]); Assert.AreEqual(LineType.Footer, res.LineType); Assert.AreEqual(EventType.Sql, res.EventType); Assert.IsNull(res.RequiredBlockRule); }