Skip to content

Commit 74ce782

Browse files
committed
more TimeThings tests
1 parent 2ec6f41 commit 74ce782

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Test/UnitTests/TestSupport/TestTimeThings.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,36 @@ public void TestHowLongTimeThings()
120120
//VERIFY
121121
}
122122

123+
[Fact]
124+
public void TestTimeThingsMany()
125+
{
126+
//SETUP
127+
TimeThingResult result = null;
128+
//_output.WriteLine("warm up _output");
129+
130+
//ATTEMPT
131+
using (new TimeThings(output, "TimeThings direct 1"))
132+
{
133+
Thread.Sleep(10);
134+
}
135+
using (new TimeThings(output, "TimeThings direct 2"))
136+
{
137+
Thread.Sleep(10);
138+
}
139+
using (new TimeThings(x => result = x, "TimeThings redirect 1"))
140+
{
141+
Thread.Sleep(10);
142+
}
143+
_output.WriteLine(result.ToString());
144+
using (new TimeThings(x => result = x, "TimeThings redirect 2"))
145+
{
146+
Thread.Sleep(10);
147+
}
148+
_output.WriteLine(result.ToString());
149+
150+
//VERIFY
151+
}
152+
123153

124154
private class MockOutput : ITestOutputHelper
125155
{

0 commit comments

Comments
 (0)