dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
19.02k stars 4.03k forks source link

Several scripting error tests are invalidated due to the fact that top-level statements are now supported in regular code. #44418

Open AlekseyTs opened 4 years ago

AlekseyTs commented 4 years ago
Microsoft.CodeAnalysis.CSharp.UnitTests.ScriptSemanticsTests.Errors_02 [FAIL]
  Assert.Null() Failure
  Expected: (null)
  Actual:   System.Console.WriteLine(int)
  Stack Trace:
    F:\GitHub\roslyn\src\Compilers\CSharp\Test\Semantic\Semantics\ScriptSemanticsTests.cs(1276,0): at Microsoft.CodeAnalysis.CSharp.UnitTests.ScriptSemanticsTests.Errors_02()
Microsoft.CodeAnalysis.CSharp.UnitTests.ScriptSemanticsTests.Errors_03 [FAIL]
  Assert.Null() Failure
  Expected: (null)
  Actual:   x
  Stack Trace:
    F:\GitHub\roslyn\src\Compilers\CSharp\Test\Semantic\Semantics\ScriptSemanticsTests.cs(1311,0): at Microsoft.CodeAnalysis.CSharp.UnitTests.ScriptSemanticsTests.Errors_03()
Microsoft.CodeAnalysis.CSharp.UnitTests.ScriptSemanticsTests.Errors_01 [FAIL]
  Assert.Null() Failure
  Expected: (null)
  Actual:   System.Console.WriteLine(int)
  Stack Trace:
    F:\GitHub\roslyn\src\Compilers\CSharp\Test\Semantic\Semantics\ScriptSemanticsTests.cs(1184,0): at Microsoft.CodeAnalysis.CSharp.UnitTests.ScriptSemanticsTests.Errors_01()
AlekseyTs commented 4 years ago

The tests are temporarily disabled.