Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Feb 27, 2024
1 parent b1011ae commit 322fc06
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,18 @@ public void AreListsEqual_OneListNull_ArgumentNullException()
// Assert
Assert.IsFalse(result);
}

[TestMethod]
public void AreListsEqual_OneListNull()
{
// Arrange
var list1 = new List<int?> { 1, null, 3 };
var list2 = new List<int?> { 1, 2, 3 };

// Act
var result = AreListsEqualHelper.AreListsEqual(list1, list2);

// Assert // not sure if good
Assert.IsTrue(result);
}
}

0 comments on commit 322fc06

Please sign in to comment.