-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathRealTimeTestRunnerTest.cs
More file actions
32 lines (26 loc) · 999 Bytes
/
RealTimeTestRunnerTest.cs
File metadata and controls
32 lines (26 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.Linq;
namespace utPLSQL
{
[TestClass]
public class RealTimeTestRunnerTest
{
[TestMethod]
public void TestToscamtest()
{
var testRunner = new RealTimeTestRunner();
testRunner.Connect(username: "toscamtest", password: "toscamtest", database: "CA40");
testRunner.RunTestsWithCoverage(type: "USER", owner: null, name: "toscamtest", procedure: null, coverageSchemas: "'toscam'", "'pa_m720','pa_m770'", null);
List<@event> events = new List<@event>();
testRunner.ConsumeResult(@event =>
{
events.Add(@event);
});
Assert.AreEqual("pre-run", events[0].type);
Assert.AreEqual("post-run", events.Last().type);
var report = testRunner.GetCoverageReport();
System.Diagnostics.Trace.WriteLine(report);
}
}
}