File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Test/UnitTests/TestSupport Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments