public virtual void TestTimeout_flush_Success()
 {
     bool[] called = new bool[1];
     os = new TimeoutOutputStream(new _OutputStream_153(called), timer);
     os.SetTimeout(timeout);
     os.Flush();
     NUnit.Framework.Assert.IsTrue(called[0]);
 }
 public virtual void TestTimeout_flush_Timeout()
 {
     bool[] called = new bool[1];
     os = new TimeoutOutputStream(new _OutputStream_172(called), timer);
     os.SetTimeout(timeout);
     BeginWrite();
     try
     {
         os.Flush();
         NUnit.Framework.Assert.Fail("incorrectly flushed");
     }
     catch (ThreadInterruptedException)
     {
     }
     // expected
     AssertTimeout();
     NUnit.Framework.Assert.IsTrue(called[0]);
 }
		public virtual void TestTimeout_flush_Timeout()
		{
			bool[] called = new bool[1];
			os = new TimeoutOutputStream(new _OutputStream_171(called), timer);
			os.SetTimeout(timeout);
			BeginWrite();
			try
			{
				os.Flush();
				NUnit.Framework.Assert.Fail("incorrectly flushed");
			}
			catch (ThreadInterruptedException)
			{
			}
			// expected
			AssertTimeout();
			NUnit.Framework.Assert.IsTrue(called[0]);
		}
		public virtual void TestTimeout_flush_Success()
		{
			bool[] called = new bool[1];
			os = new TimeoutOutputStream(new _OutputStream_152(called), timer);
			os.SetTimeout(timeout);
			os.Flush();
			NUnit.Framework.Assert.IsTrue(called[0]);
		}