Skip to content

Commit

Permalink
Remove duplicate test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKotsenas committed Jun 10, 2024
1 parent 17b89e5 commit 8114776
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public static IEnumerable<object[]> TestData()
yield return [@namespace, """new Mock<Foo>(MockBehavior.Default);"""];
yield return [@namespace, """new Mock<Foo>(MockBehavior.Strict);"""];
yield return [@namespace, """new Mock<Foo>(MockBehavior.Loose);"""];
yield return [@namespace, """new Mock<Foo>(MockBehavior.Default);"""];
yield return [@namespace, """new Mock<Foo>("3");"""];
yield return [@namespace, """new Mock<Foo>("4");"""];
yield return [@namespace, """new Mock<Foo>(MockBehavior.Default, "5");"""];
Expand All @@ -35,7 +34,6 @@ public static IEnumerable<object[]> TestData()
yield return [@namespace, """new Mock<AbstractGenericClassWithCtor<object>>{|Moq1002:("42", 42)|};"""];
yield return [@namespace, """new Mock<AbstractGenericClassDefaultCtor<object>>{|Moq1002:(42)|};"""];
yield return [@namespace, """new Mock<AbstractGenericClassDefaultCtor<object>>();"""];
yield return [@namespace, """new Mock<AbstractGenericClassDefaultCtor<object>>();"""];
yield return [@namespace, """new Mock<AbstractGenericClassDefaultCtor<object>>(MockBehavior.Default);"""];
// TODO: "I think this _should_ fail, but currently passes. Tracked by #55."
// yield return [@namespace, """new Mock<AbstractClassWithCtor>();"""];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ public static IEnumerable<object[]> InterfaceMockingTestData()
{
foreach (string @namespace in new[] { string.Empty, "namespace MyNamespace;" })
{
yield return [@namespace, """new Mock<IMyService>{|Moq1001:(25, true)|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:("123")|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:(25, true)|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:("123")|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:(MockBehavior.Default, "123")|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:(MockBehavior.Strict, 25, true)|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:(MockBehavior.Default, "123")|};"""];
yield return [@namespace, """new Mock<IMyService>{|Moq1001:(MockBehavior.Loose, 25, true)|};"""];
yield return [@namespace, """new Mock<IMyService>();"""];
yield return [@namespace, """new Mock<IMyService>(MockBehavior.Default);"""];
Expand Down

0 comments on commit 8114776

Please sign in to comment.