Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/FluentAssertions.Analyzers.Tests/Tips/MsTestTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ public void AssertIsInstanceOfType_TestCodeFix(string oldAssertion, string newAs
[DataTestMethod]
[AssertionDiagnostic("Assert.IsNotInstanceOfType(actual, type{0});")]
[AssertionDiagnostic("Assert.IsNotInstanceOfType(actual, typeof(string){0});")]
[AssertionDiagnostic("Assert.IsNotInstanceOfType<string>(actual{0});")]
[Implemented]
public void AssertIsNotInstanceOfType_TestAnalyzer(string assertion) => VerifyCSharpDiagnostic("object actual, Type type", assertion);

Expand All @@ -286,6 +287,9 @@ public void AssertIsInstanceOfType_TestCodeFix(string oldAssertion, string newAs
[AssertionCodeFix(
oldAssertion: "Assert.IsNotInstanceOfType(actual, typeof(string){0});",
newAssertion: "actual.Should().NotBeOfType<string>({0});")]
[AssertionCodeFix(
oldAssertion: "Assert.IsNotInstanceOfType<string>(actual{0});",
newAssertion: "actual.Should().NotBeOfType<string>({0});")]
[Implemented]
public void AssertIsNotInstanceOfType_TestCodeFix(string oldAssertion, string newAssertion)
=> VerifyCSharpFix("object actual, Type type", oldAssertion, newAssertion);
Expand Down