Example #1
0
 public void TestReadByte()
 {
     using (var cfile = new CFile(BuildStream("èaà\nüî"))) {
         Assert.Equal(195, cfile.ReadByte());
         Assert.Equal(168, cfile.ReadByte());
         Assert.Equal(97, cfile.ReadByte());
         Assert.Equal(195, cfile.ReadByte());
         Assert.Equal(160, cfile.ReadByte());
         Assert.Equal(10, cfile.ReadByte());
         Assert.Equal(195, cfile.ReadByte());
         Assert.Equal(188, cfile.ReadByte());
         Assert.Equal(195, cfile.ReadByte());
         Assert.Equal(174, cfile.ReadByte());
         Assert.Equal(0, cfile.ReadByte());
         Assert.Equal(0, cfile.ReadByte());
         Assert.Equal(true, cfile.EOF);
     }
 }
Example #2
0
 public void TestReadByte()
 {
     using (var cfile = new CFile(BuildStream("èaà\nüî"))) {
         Assert.AreEqual(195, cfile.ReadByte());
         Assert.AreEqual(168, cfile.ReadByte());
         Assert.AreEqual(97, cfile.ReadByte());
         Assert.AreEqual(195, cfile.ReadByte());
         Assert.AreEqual(160, cfile.ReadByte());
         Assert.AreEqual(10, cfile.ReadByte());
         Assert.AreEqual(195, cfile.ReadByte());
         Assert.AreEqual(188, cfile.ReadByte());
         Assert.AreEqual(195, cfile.ReadByte());
         Assert.AreEqual(174, cfile.ReadByte());
         Assert.AreEqual(0, cfile.ReadByte());
         Assert.AreEqual(0, cfile.ReadByte());
         Assert.AreEqual(true, cfile.EOF);
     }
 }