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); }
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); }
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); }
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); }