test should actually return the right nodes

This commit is contained in:
Jake Norbut committed 2019-04-11 11:17:55 -05:00
1 parent 7190d949f5
commit b6df4b64b8
1 file changed
+2 -2
@@ -113,8 +113,8 @@ namespace bts.tests {
// replace_success should be true and
// we should now get both B and C
// no short circuting since we want to test both conditions
Assert.IsTrue(replace_success & the_children.Count() == 2);
// no short circuting since we want to test all conditions
Assert.IsTrue(replace_success & the_children.Count() == 2 & the_children.Contains(order_b) & the_children.Contains(order_c));
// we will now try to replace a non-existant node
replace_success = tree.TryReplace(19, (o) => { o.name = 'Q'; return o; }, out the_children);