Beispiel #1
0
        public void Equals_WithCaseInsensitiveDependencies_ReturnsTrue()
        {
            var leftSide  = new ProjectFileDependencyGroup("frameworkName", new string[] { "a", "c", "b" });
            var rightSide = new ProjectFileDependencyGroup("frameworkName", new string[] { "B", "a", "C" });

            leftSide.Should().Be(rightSide);
        }
Beispiel #2
0
        public void Equals_WithCaseInsensitiveFrameworkName_ReturnsTrue()
        {
            var leftSide  = new ProjectFileDependencyGroup("frameworkName", Enumerable.Empty <string>());
            var rightSide = new ProjectFileDependencyGroup("FrameworkName", Enumerable.Empty <string>());

            leftSide.Should().Be(rightSide);
        }
Beispiel #3
0
        public void Equals_WithDifferentCountDependencies_ReturnsFalse()
        {
            var leftSide  = new ProjectFileDependencyGroup("frameworkName", new string[] { "a", "c", "b", "extra" });
            var rightSide = new ProjectFileDependencyGroup("frameworkName", new string[] { "a", "c", "b" });

            leftSide.Should().NotBe(rightSide);
        }
Beispiel #4
0
        public void Equals_WithDifferentFrameworkName_ReturnsFalse()
        {
            var leftSide  = new ProjectFileDependencyGroup("frameworkName", Enumerable.Empty <string>());
            var rightSide = new ProjectFileDependencyGroup("differetName", Enumerable.Empty <string>());

            leftSide.Should().NotBe(rightSide);
        }