Skip to content

Commit

Permalink
fixed test order
Browse files Browse the repository at this point in the history
  • Loading branch information
Puchaczov committed Jan 26, 2025
1 parent 6a6f94c commit 75623ec
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions Musoq.Evaluator.Tests/JoinTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1451,13 +1451,18 @@ public void WhenSelfJoined_ShouldRetrieveValues()
var table = vm.Run();

Assert.AreEqual(2, table.Columns.Count());
Assert.AreEqual(2, table.Count);

Assert.AreEqual("Poland", table[0][0]);
Assert.AreEqual("Krakow", table[0][1]);

Assert.AreEqual("Germany", table[1][0]);
Assert.AreEqual("Berlin", table[1][1]);

Assert.IsTrue(table.Count == 2, "Table should have 2 entries");

Assert.IsTrue(table.Any(entry =>
(string)entry[0] == "Poland" &&
(string)entry[1] == "Krakow"
), "First entry should be Poland, Krakow");

Assert.IsTrue(table.Any(entry =>
(string)entry[0] == "Germany" &&
(string)entry[1] == "Berlin"
), "Second entry should be Germany, Berlin");
}

[TestMethod]
Expand Down

0 comments on commit 75623ec

Please sign in to comment.