Permalink
Browse files

Straighten collection assertions to take into account the order of items

  • Loading branch information...
1 parent 9a08852 commit 90f0d0504300ed47fb25dde119a7400f7b6b2fd4 @nulltoken nulltoken committed Sep 11, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 LibGit2Sharp.Tests/CommitFixture.cs
  2. +1 −1 LibGit2Sharp.Tests/TreeFixture.cs
View
6 LibGit2Sharp.Tests/CommitFixture.cs
@@ -192,7 +192,7 @@ public void CanEnumerateUsingTwoHeadsAsBoundaries()
var commits = repo.Commits.QueryBy(new Filter { Since = "HEAD", Until = "refs/heads/br2" });
IEnumerable<string> abbrevShas = commits.Select(c => c.Id.ToString(7)).ToArray();
- CollectionAssert.AreEquivalent(new[] { "4c062a6", "be3563a" }, abbrevShas);
+ CollectionAssert.AreEqual(new[] { "4c062a6", "be3563a" }, abbrevShas);
}
}
@@ -204,7 +204,7 @@ public void CanEnumerateUsingOneHeadAsBoundaries()
var commits = repo.Commits.QueryBy(new Filter { Until = "refs/heads/br2" });
IEnumerable<string> abbrevShas = commits.Select(c => c.Id.ToString(7)).ToArray();
- CollectionAssert.AreEquivalent(new[] { "4c062a6", "be3563a" }, abbrevShas);
+ CollectionAssert.AreEqual(new[] { "4c062a6", "be3563a" }, abbrevShas);
}
}
@@ -216,7 +216,7 @@ public void CanEnumerateUsingTwoAbbreviatedShasAsBoundaries()
var commits = repo.Commits.QueryBy(new Filter { Since = "a4a7dce", Until = "4a202b3" });
IEnumerable<string> abbrevShas = commits.Select(c => c.Id.ToString(7)).ToArray();
- CollectionAssert.AreEquivalent(new[] { "a4a7dce", "c47800c", "9fd738e" }, abbrevShas);
+ CollectionAssert.AreEqual(new[] { "a4a7dce", "c47800c", "9fd738e" }, abbrevShas);
}
}
View
2 LibGit2Sharp.Tests/TreeFixture.cs
@@ -76,7 +76,7 @@ public void CanEnumerateTreeEntries()
var tree = repo.Lookup<Tree>(sha);
tree.Count().ShouldEqual(tree.Count);
- CollectionAssert.AreEquivalent(new[] {"1", "README", "branch_file.txt", "new.txt"}, tree.Select(te => te.Name).ToArray());
+ CollectionAssert.AreEqual(new[] {"1", "README", "branch_file.txt", "new.txt"}, tree.Select(te => te.Name).ToArray());
}
}

0 comments on commit 90f0d05

Please sign in to comment.