Example #1
0
 public void WriteSetsDiskFlushFlag()
 {
     using (var wrapper = new FileWrapperStream(TemporaryFile))
     {
         wrapper.Seek(0, System.IO.SeekOrigin.Begin);
         Assert.IsFalse(wrapper.IsAwaitingDiskFlush);
         wrapper.WriteByte(4);
         Assert.IsTrue(wrapper.IsAwaitingDiskFlush);
     }
 }
Example #2
0
 internal void WriteByte([PexAssumeUnderTest] FileWrapperStream target, byte value)
 {
     target.WriteByte(value);
     // TODO: add assertions to method FileWrapperStreamTest.WriteByte(FileWrapperStream, Byte)
 }