Skip to content

Commit 6e6e958

Browse files
authored
Fix collection asserts (#188)
1 parent 4b7bc48 commit 6e6e958

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/TestFramework/CollectionAssert.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ public static void AreEqual(
7171
{
7272
string reason = string.Empty;
7373

74-
if (AreCollectionsEqual(expected,
74+
if (!AreCollectionsEqual(expected,
7575
actual,
7676
ref reason))
7777
{
7878
Assert.HandleFail(
79-
"CollectionAssert.AreNotEqual",
79+
"CollectionAssert.AreEqual",
8080
string.Format(CollectionEqualReason, new object[2]
8181
{
8282
message,
@@ -99,12 +99,12 @@ public static void AreNotEqual(
9999
{
100100
string reason = string.Empty;
101101

102-
if (!AreCollectionsEqual(notExpected,
102+
if (AreCollectionsEqual(notExpected,
103103
actual,
104104
ref reason))
105105
{
106106
Assert.HandleFail(
107-
"CollectionAssert.AreEqual",
107+
"CollectionAssert.AreNotEqual",
108108
string.Format(CollectionEqualReason, new object[2]
109109
{
110110
message,

0 commit comments

Comments
 (0)