public virtual void TestFlush() { int[] flushCnt = new int[1]; OutputStream mockout = new _OutputStream_182(flushCnt); new SideBandOutputStream(SideBandOutputStream.CH_DATA, SideBandOutputStream.SMALL_BUF , mockout).Flush(); NUnit.Framework.Assert.AreEqual(1, flushCnt[0]); }