public void FlushCanBeUsedOnPipes_Success(bool? flushToDisk)
{
using (var pipeStream = new AnonymousPipeServerStream(PipeDirection.In))
using (var clientHandle = pipeStream.ClientSafePipeHandle)
{
SafeFileHandle handle = new SafeFileHandle((IntPtr)int.Parse(pipeStream.GetClientHandleAsString()), false);
using (FileStream fs = new FileStream(handle, FileAccess.Write, 1, false))
{
Flush(fs, flushToDisk);
}
}
}