Delete unrelated test file from System.Console.Tests (#72033)
authorStephen Toub <stoub@microsoft.com>
Tue, 12 Jul 2022 19:19:25 +0000 (15:19 -0400)
committerGitHub <noreply@github.com>
Tue, 12 Jul 2022 19:19:25 +0000 (15:19 -0400)
src/libraries/System.Console/tests/NegativeTesting.cs [deleted file]
src/libraries/System.Console/tests/System.Console.Tests.csproj

diff --git a/src/libraries/System.Console/tests/NegativeTesting.cs b/src/libraries/System.Console/tests/NegativeTesting.cs
deleted file mode 100644 (file)
index 070c2f7..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-// Licensed to the .NET Foundation under one or more agreements.
-// The .NET Foundation licenses this file to you under the MIT license.
-
-using System;
-using System.IO;
-using Xunit;
-
-public class NegativeTesting
-{
-    [Fact]
-    public static void StreamNullTests()
-    {
-        Stream stream = Stream.Null;
-
-        Assert.Equal(0L, stream.Length);
-
-        Assert.Equal(0L, stream.Position);
-
-        stream.Position = 50L;
-        stream.SetLength(50L);
-        Assert.Equal(0L, stream.Length);
-
-        // Flushing a stream is fine.
-        stream.Flush();
-
-        //Read and write methods
-
-        Assert.Equal(0, stream.Read(null, 0, 1));
-        Assert.Equal(0, stream.Read(new byte[] { 0, 1 }, -1, 0));
-        Assert.Equal(0, stream.Read(new byte[] { 0, 1 }, 0, -1));
-        Assert.Equal(0, stream.Read(new byte[] { 0, 1 }, 0, 50));
-        Assert.Equal(0, stream.Read(new byte[] { 0, 1 }, 0, 2));
-
-        stream.Write(null, 0, 1);
-        stream.Write(new byte[] { 0, 1 }, -1, 0);
-        stream.Write(new byte[] { 0, 1 }, 0, -1);
-        stream.Write(new byte[] { 0, 1 }, 0, 50);
-
-        Assert.Equal(0L, stream.Seek(0L, SeekOrigin.Begin));
-
-        // Null stream even ignores Dispose.
-        stream.Dispose();
-
-        Assert.Equal(0, stream.Read(new byte[] { 0, 1 }, 0, 1));
-        stream.Write(new byte[] { 0, 1 }, 0, 1);
-        stream.Flush();
-    }
-}
index 3592a18..385ab39 100644 (file)
@@ -14,7 +14,6 @@
     <Compile Include="SetIn.cs" />
     <Compile Include="Color.cs" />
     <Compile Include="SetOut.cs" />
-    <Compile Include="NegativeTesting.cs" />
     <Compile Include="ConsoleEncoding.cs" />
     <Compile Include="SyncTextReader.cs" />
     <Compile Include="SyncTextWriter.cs" />