public void flushWithIOException() { using (JavaOutputStreamAdapter testSubject = NewTestSubject(new BaseStreamAdapter())) { testSubject.flush(); } }
public void flush() { using (JavaOutputStreamAdapter testSubject = NewTestSubject()) { testSubject.flush(); } }
public void flushAfterDispose() { JavaOutputStreamAdapter testSubject = NewTestSubject(); testSubject.Dispose(); testSubject.flush(); }
public void writeByte() { // Create Constructor Parameters using (MemoryStream stream = new MemoryStream()) using (JavaOutputStreamAdapter testSubject = NewTestSubject(stream)) { int b = 1; testSubject.write(b); testSubject.flush(); Assert.AreEqual(1, stream.Length); } }