diff --git a/Source/Moq.Analyzers.Test/ConstructorArgumentsShouldMatchAnalyzerTests.cs b/Source/Moq.Analyzers.Test/ConstructorArgumentsShouldMatchAnalyzerTests.cs index 0d1db285..9e9d4107 100644 --- a/Source/Moq.Analyzers.Test/ConstructorArgumentsShouldMatchAnalyzerTests.cs +++ b/Source/Moq.Analyzers.Test/ConstructorArgumentsShouldMatchAnalyzerTests.cs @@ -34,18 +34,15 @@ public static IEnumerable TestData() yield return [@namespace, """new Mock>{|Moq1002:("42")|};"""]; yield return [@namespace, """new Mock>{|Moq1002:("42", 42)|};"""]; yield return [@namespace, """new Mock>{|Moq1002:(42)|};"""]; - // TODO: Review use of `.As<>()` in this test case. It is not clear what purpose it serves. - yield return [@namespace, """new Mock>().As>();"""]; + yield return [@namespace, """new Mock>();"""]; yield return [@namespace, """new Mock>();"""]; yield return [@namespace, """new Mock>(MockBehavior.Default);"""]; // TODO: "I think this _should_ fail, but currently passes. Tracked by #55." - // TODO: Review use of `.As<>()` in this test case. It is not clear what purpose it serves. - // yield return [@namespace, """new Mock().As();"""]; + // yield return [@namespace, """new Mock();"""]; yield return [@namespace, """new Mock{|Moq1002:("42")|};"""]; yield return [@namespace, """new Mock{|Moq1002:("42", 42)|};"""]; yield return [@namespace, """new Mock{|Moq1002:(42)|};"""]; - // TODO: Review use of `.As<>()` in this test case. It is not clear what purpose it serves. - yield return [@namespace, """new Mock().As();"""]; + yield return [@namespace, """new Mock();"""]; yield return [@namespace, """new Mock(42);"""]; yield return [@namespace, """new Mock(MockBehavior.Default, 42);"""]; yield return [@namespace, """new Mock(42, "42");"""];