public void WriteAndReadCharViaDiskFile() { var file = new DiskFile("test4c.dat", "rwb"); Assert.NotNull(file); Assert.True(file.CanWrite); file.WriteChar(13); file.WriteChar(17); file.Seek(0); var rd = file.ReadChar(); Assert.Equal(13, rd); rd = file.ReadChar(); Assert.Equal(17, rd); file.Close(); Assert.False(file.IsOpen); }