Exemplo n.º 1
0
 //--------
 public NetworkStreamTimeoutTests(StreamOpTest testType)
 {
     if (testType == StreamOpTest.Write)
     {
         _theStreamOperation = TheWriteOperationUnderTest;
         _theBeginVersionOfTheStreamOperation = TheBeginVersionOfTheWriteOperation;
         _theReleaseOperation = ReleaseWriteOperation;
         _setTimeoutPi        = typeof(Stream).GetProperty("WriteTimeout");
     }
     else
     {
         _theStreamOperation = TheReadOperationUnderTest;
         _theBeginVersionOfTheStreamOperation = TheBeginVersionOfTheReadOperation;
         _theReleaseOperation = ReleaseReadOperation;
         _setTimeoutPi        = typeof(Stream).GetProperty("ReadTimeout");
     }
 }
Exemplo n.º 2
0
 public SocketsTimeoutTests(StreamOpTest testType)
     : base(testType)
 {
 }
Exemplo n.º 3
0
 public WidcommCommsTimeoutTests(StreamOpTest testType)
     : base(testType)
 {
 }