Skip to content

Commit 245cf50

Browse files
committed
Small fix
1 parent 1051fdc commit 245cf50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Analyzers/MSTest.Analyzers/DuplicateDataRowAnalyzer.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public bool Equals(ImmutableArray<TypedConstant> x, ImmutableArray<TypedConstant
8080

8181
for (int i = 0; i < x.Length; i++)
8282
{
83-
if (AreTypedConstantEquals(x[i], y[i]))
83+
if (!AreTypedConstantEquals(x[i], y[i]))
8484
{
8585
return false;
8686
}
@@ -93,7 +93,7 @@ private static bool AreTypedConstantEquals(TypedConstant typedConstant1, TypedCo
9393
{
9494
// If the Kind doesn't match or the Type doesn't match, they are not equal.
9595
if (typedConstant1.Kind != typedConstant2.Kind ||
96-
SymbolEqualityComparer.Default.Equals(typedConstant1.Type, typedConstant2.Type))
96+
!SymbolEqualityComparer.Default.Equals(typedConstant1.Type, typedConstant2.Type))
9797
{
9898
return false;
9999
}

0 commit comments

Comments
 (0)