Exemplo n.º 1
0
 public void Can_trace_from_a_leaf_to_a_leaf()
 {
     Assert.That(Pov.TracePathBetween("kid-a", "cousin-0", cousins), Is.EquivalentTo(new[] { "kid-a", "x", "parent", "grandparent", "uncle", "cousin-0" }));
 }
Exemplo n.º 2
0
 public void Can_trace_a_path_from_x_to_cousin()
 {
     Assert.That(Pov.TracePathBetween(x, "cousin-1", cousins), Is.EquivalentTo(new[] { "x", "parent", "grandparent", "uncle", "cousin-1" }));
 }
Exemplo n.º 3
0
 public void Can_trace_from_a_leaf_to_a_leaf()
 {
     Assert.Equal(new[] { "kid-a", "x", "parent", "grandparent", "uncle", "cousin-0" }, Pov.TracePathBetween("kid-a", "cousin-0", cousins));
 }
Exemplo n.º 4
0
 public void Cannot_trace_between_unconnected_nodes()
 {
     Assert.That(Pov.TracePathBetween(x, "NOT THERE", cousins), Is.Null);
 }
Exemplo n.º 5
0
 public void Can_trace_a_path_from_x_to_cousin()
 {
     Assert.Equal(new[] { "x", "parent", "grandparent", "uncle", "cousin-1" }, Pov.TracePathBetween(x, "cousin-1", cousins));
 }