Skip to content

Commit 55fdd53

Browse files
committed
Removed test and added assertions
1 parent 2f0a099 commit 55fdd53

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using System.Collections.Generic;
3+
using System.Linq;
24

35
namespace utPLSQL
46
{
@@ -13,28 +15,14 @@ public void TestToscamtest()
1315

1416
testRunner.RunTests(type: "USER", owner: null, name: "toscamtest", subType: null);
1517

18+
List<@event> events = new List<@event>();
1619
testRunner.ConsumeResult(@event =>
1720
{
18-
System.Diagnostics.Trace.WriteLine(@event.type);
21+
events.Add(@event);
1922
});
2023

21-
Assert.AreEqual("1", "1");
22-
}
23-
24-
[TestMethod]
25-
public void TestToscatest()
26-
{
27-
RealTimeTestRunner testRunner = new RealTimeTestRunner();
28-
testRunner.Connect(username: "toscatest", password: "toscatest", database: "CA40");
29-
30-
testRunner.RunTests(type: "USER", owner: null, name: "toscatest", subType: null);
31-
32-
testRunner.ConsumeResult(@event =>
33-
{
34-
System.Diagnostics.Trace.WriteLine(@event.type);
35-
});
36-
37-
Assert.AreEqual("1", "1");
24+
Assert.AreEqual("pre-run", events[0].type);
25+
Assert.AreEqual("post-run", events.Last().type);
3826
}
3927
}
4028
}

0 commit comments

Comments
 (0)