Exemplo n.º 1
0
        public void ShouldBeEqual()
        {
            var gitStatusEntry = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                    GitFileStatus.Added, "SomeOriginalPath");

            gitStatusEntry.Should().Be(gitStatusEntry);
        }
Exemplo n.º 2
0
        public void ShouldBeEqualIfOriginalpathIsNull()
        {
            var gitStatusEntry = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                    GitFileStatus.None, GitFileStatus.Added);

            gitStatusEntry.Should().Be(gitStatusEntry);
        }
Exemplo n.º 3
0
        public void ShouldBeEqualIfBothAreStaged()
        {
            var gitStatusEntry = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                    GitFileStatus.Added, "SomeOriginalPath", true);

            var gitStatusEntry2 = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                     GitFileStatus.Added, "SomeOriginalPath", true);

            gitStatusEntry.Should().Be(gitStatusEntry2);
        }
Exemplo n.º 4
0
        public void ShouldNotBeEqualIfOneIsStaged()
        {
            var gitStatusEntry = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                    GitFileStatus.Added, "SomeOriginalPath", staged: true);

            var gitStatusEntry2 = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                     GitFileStatus.Added, "SomeOriginalPath");

            gitStatusEntry.Should().NotBe(gitStatusEntry2);
        }
Exemplo n.º 5
0
        public void ShouldNotBeEqualIfPathIsDifferent()
        {
            var gitStatusEntry1 = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                     GitFileStatus.Added, "SomeOriginalPath");

            var gitStatusEntry2 = new GitStatusEntry("SomePath2", "SomeFullPath", "SomeProjectPath",
                                                     GitFileStatus.Added, "SomeOriginalPath");

            gitStatusEntry1.Should().NotBe(gitStatusEntry2);
        }