Skip to content

Commit 28ec3e4

Browse files
committed
fixup! Update local copy of ExperimentalAttribute per dotnet/runtime#85444
1 parent 2409e3b commit 28ec3e4

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/Analyzers/Microsoft.Extensions.ExtraAnalyzers/Common/UsingExperimentalApiAnalyzerTest.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,12 @@ public static class UsingExperimentalApiAnalyzerTest
1313
[MemberData(nameof(TestData))]
1414
public static async Task Common(string source)
1515
{
16-
const string AttributeSource = @"
17-
namespace System.Diagnostics.CodeAnalysis
18-
{
19-
public sealed class ExperimentalAttribute : System.Attribute { }
20-
}";
21-
2216
var d = await RoslynTestUtils.RunAnalyzer(
2317
new UsingExperimentalApiAnalyzer(),
2418
null,
2519
new[]
2620
{
2721
source,
28-
AttributeSource,
2922
}).ConfigureAwait(false);
3023

3124
var expectedCount = source.CountSpans();
@@ -81,7 +74,7 @@ public class ExpClass
8174
using System.Diagnostics.CodeAnalysis;
8275
8376
#pragma warning disable R9A029
84-
[assembly: Experimental]
77+
[assembly: Experimental(diagnosticId: ""TBD"", UrlFormat = ""TBD"")]
8578
#pragma warning restore R9A029
8679
8780
public class TestClass : /*0+*/ExpClass/*-0*/

0 commit comments

Comments
 (0)