示例#1
0
        public void ShouldBeEqual()
        {
            var gitStatusEntry = new GitStatusEntry("SomePath", "SomeFullPath", "SomeProjectPath",
                                                    GitFileStatus.Added, "SomeOriginalPath");

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

            gitStatusEntry.Should().Be(gitStatusEntry);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }