public void ToString_should_handle_single_event() { var vv = new VersionVector(new CausalEvent("r", 1)); vv.ToString().Should().Be("{(r,1)}"); }
public void ToString_should_handle_multiple_events() { var vv = new VersionVector(new[] { new CausalEvent("r", 1), new CausalEvent("s", 1) }); vv.ToString().Should().Be("{(r,1),(s,1)}"); }
public void ToString_should_handle_and_empty_set() { var vv = new VersionVector(); vv.ToString().Should().Be("{}"); }