[corlib] Fixed tests to work with NET_2_1 define.
authorJoão Matos <joao@tritao.eu>
Tue, 3 Feb 2015 14:10:46 +0000 (14:10 +0000)
committerJoão Matos <joao@tritao.eu>
Tue, 3 Feb 2015 14:11:32 +0000 (14:11 +0000)
mcs/class/corlib/Test/System.IO/FileStreamSafeHandleTest.cs

index 2ee9e4328f2fe73df5559ef9a06cc2e0986a0453..bd114bb5fb49b2ab7ba6c7c5cbbe4a20a9792f58 100644 (file)
@@ -17,6 +17,7 @@ namespace MonoTests.System.IO
        [TestFixture]
        public class FileStreamWithClosedSafeHandleTests
        {
+#if !NET_2_1
                private FileStream GetFileStreamWithClosedHandle ()
                {
                        var fs1 = new FileStream ("test2", FileMode.OpenOrCreate);
@@ -178,5 +179,6 @@ namespace MonoTests.System.IO
 
                        fs.FlushAsync (new CancellationToken ());
                }
+#endif
        }
 }