Skip to content

Commit

Permalink
Update SealInternalTypesTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Nov 17, 2022
1 parent 284e569 commit 9043c47
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using System.Threading.Tasks;
using Microsoft.CodeAnalysis;
using Test.Utilities;
using Xunit;

using VerifyCS = Test.Utilities.CSharpCodeFixVerifier<
Expand Down Expand Up @@ -202,6 +203,21 @@ End Class
#endregion

#region No Diagnostic
[Fact, WorkItem(6141, "https://github.com/dotnet/roslyn-analyzers/issues/6141")]
public Task TopLevelStatementsProgram(string accessModifier)
{
await new VerifyCS.Test()
{
TestState =
{
Sources = { "System.Console.WriteLine();" },
OutputKind = OutputKind.ConsoleApplication,
},
LanguageVersion = CodeAnalysis.CSharp.LanguageVersion.CSharp9,
}.RunAsync();

}

[Fact]
public Task PublicClassType_NoDiagnostic_CS()
{
Expand Down

0 comments on commit 9043c47

Please sign in to comment.