mono/mono — pull request #187 by damageboy (2011-11-03 18:14:42+00:00)
Title: Matched FileStream behaviour with MS.NET

FileStream in MS.NET behaves differently from it's normal buffering strategy once the Handle/SafeFileHandle has been retrieved.

The buffering should be turned off, and retrieving the Position should always go through the Handle/OS.

The provided test should write to a temp file the ASCII string HELLO, but writes LOL on the current implementation of Mono.

The test also checks that the position is correct once the string has been written using the two FileStream instances sharing a handle.