コード例 #1
0
 public void flushWithIOException()
 {
     using (JavaOutputStreamAdapter testSubject = NewTestSubject(new BaseStreamAdapter()))
     {
         testSubject.flush();
     }
 }
コード例 #2
0
 public void flush()
 {
     using (JavaOutputStreamAdapter testSubject = NewTestSubject())
     {
         testSubject.flush();
     }
 }
コード例 #3
0
        public void flushAfterDispose()
        {
            JavaOutputStreamAdapter testSubject = NewTestSubject();

            testSubject.Dispose();
            testSubject.flush();
        }
コード例 #4
0
        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);
                }
        }