Example #1
0
        [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);
        }
Example #2
0
        [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);
        }