[U] public void Eq() { var project = new Project { Name = "x" }; DocumentPath <Project> path = project; DocumentPath <Project> pathOther = project; (pathOther == path).Should().BeTrue(); pathOther.Should().Be(path); path = new DocumentPath <Project>(2); pathOther = new DocumentPath <Project>(2); (pathOther == path).Should().BeTrue(); pathOther.Should().Be(path); }
[U] public void NotEq() { var project = new Project { Name = "x" }; DocumentPath <Project> path = project; DocumentPath <Project> pathOther = new Project { Name = "x" }; (pathOther != path).Should().BeTrue(); pathOther.Should().NotBe(path); path = new DocumentPath <Project>(2); pathOther = new DocumentPath <Project>(2).Index("x"); (pathOther != path).Should().BeTrue(); pathOther.Should().NotBe(path); }