Beispiel #1
0
            public void WhenOtherIsNull_ThenReturnFalse()
            {
                var sut = new DotNetSolutionProjectType(ProjectTypeIds.SolutionFolder, "Solution Folder");

                var result = sut.Equals(null);

                Assert.That(result, Is.False);
            }
Beispiel #2
0
            public void WhenNotEqualById_ThenReturnFalse()
            {
                var other = new DotNetSolutionProjectType(ProjectTypeIds.CSharp, "Some other");

                var sut = new DotNetSolutionProjectType(ProjectTypeIds.SolutionFolder, "Solution Folder");

                var result = sut.Equals(other);

                Assert.That(result, Is.False);
            }
Beispiel #3
0
            public void WhenTwoHaveSameReference_ThenReturnTrue()
            {
                var sut = new DotNetSolutionProjectType(ProjectTypeIds.SolutionFolder, "Solution Folder");

                var other = sut;

                var result = sut.Equals(other);

                Assert.That(result, Is.True);
            }