tests fixes and some product advisories tunes ups
This commit is contained in:
@@ -181,7 +181,7 @@ public sealed class IntentAnalyzerTests
|
||||
public class MyTests
|
||||
{
|
||||
[Fact]
|
||||
{|#0:[Intent("Safety")]|}
|
||||
[Intent("Safety")]
|
||||
public void TestWithIntent()
|
||||
{
|
||||
var a = 1;
|
||||
@@ -202,7 +202,7 @@ public sealed class IntentAnalyzerTests
|
||||
""";
|
||||
|
||||
var expected = new DiagnosticResult(IntentAnalyzer.MissingRationaleDiagnosticId, DiagnosticSeverity.Info)
|
||||
.WithLocation(0)
|
||||
.WithSpan(6, 6, 6, 22)
|
||||
.WithArguments("TestWithIntent");
|
||||
|
||||
await VerifyWarningAsync(code, expected);
|
||||
@@ -272,6 +272,8 @@ public sealed class IntentAnalyzerTests
|
||||
|
||||
test.TestState.AdditionalReferences.Add(
|
||||
MetadataReference.CreateFromFile(typeof(Xunit.FactAttribute).Assembly.Location));
|
||||
test.TestState.AdditionalReferences.Add(
|
||||
MetadataReference.CreateFromFile(typeof(Xunit.Assert).Assembly.Location));
|
||||
|
||||
await test.RunAsync();
|
||||
}
|
||||
@@ -287,6 +289,8 @@ public sealed class IntentAnalyzerTests
|
||||
|
||||
test.TestState.AdditionalReferences.Add(
|
||||
MetadataReference.CreateFromFile(typeof(Xunit.FactAttribute).Assembly.Location));
|
||||
test.TestState.AdditionalReferences.Add(
|
||||
MetadataReference.CreateFromFile(typeof(Xunit.Assert).Assembly.Location));
|
||||
|
||||
await test.RunAsync();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user