public void Two_child_paths_with_same_name_but_different_ids_Have_same_hashcodes() { var root = new RootActorPath("/"); var childActorPath1 = new ChildActorPath(root, "Path", 1); var childActorPath2 = new ChildActorPath(root, "Path", 2); childActorPath1.GetHashCode().Should().Be(childActorPath2.GetHashCode()); }
public void Two_child_paths_with_different_name_Have_different_hashcodes() { var root = new RootActorPath("/"); var childActorPath1 = new ChildActorPath(root, "Path 1", 1); var childActorPath2 = new ChildActorPath(root, "Path 2", 1); childActorPath1.GetHashCode().Should().NotBe(childActorPath2.GetHashCode()); }
public void Two_child_paths_with_sane_name_Are_equal() { var root = new RootActorPath("/"); var childActorPath1 = new ChildActorPath(root, "Path 1", 1); var childActorPath2 = new ChildActorPath(root, "Path 1", 1); childActorPath1.GetHashCode().Should().Be(childActorPath2.GetHashCode()); }
public void Two_child_paths_with_equal_parents_Have_same_hashcodes() { var root1 = new RootActorPath("/1"); var root2 = new RootActorPath("/1"); var childActorPath1 = new ChildActorPath(root1, "Path", 1); var childActorPath2 = new ChildActorPath(root2, "Path", 1); childActorPath1.GetHashCode().Should().Be(childActorPath2.GetHashCode()); }