Skip to content

Commit

Permalink
fixup! Update local copy of ExperimentalAttribute per dotnet/runtime#…
Browse files Browse the repository at this point in the history
  • Loading branch information
RussKie committed Jun 28, 2023
1 parent 2409e3b commit 28ec3e4
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,12 @@ public static class UsingExperimentalApiAnalyzerTest
[MemberData(nameof(TestData))]
public static async Task Common(string source)
{
const string AttributeSource = @"
namespace System.Diagnostics.CodeAnalysis
{
public sealed class ExperimentalAttribute : System.Attribute { }
}";

var d = await RoslynTestUtils.RunAnalyzer(
new UsingExperimentalApiAnalyzer(),
null,
new[]
{
source,
AttributeSource,
}).ConfigureAwait(false);

var expectedCount = source.CountSpans();
Expand Down Expand Up @@ -81,7 +74,7 @@ public class ExpClass
using System.Diagnostics.CodeAnalysis;
#pragma warning disable R9A029
[assembly: Experimental]
[assembly: Experimental(diagnosticId: ""TBD"", UrlFormat = ""TBD"")]
#pragma warning restore R9A029
public class TestClass : /*0+*/ExpClass/*-0*/
Expand Down

0 comments on commit 28ec3e4

Please sign in to comment.