public void Equals_should_return_false_on_tag_collections_in_different_items_count() { var collection1 = new TagCollection { "tag1" }; var collection2 = new TagCollection { { "tag2", "value1" }, "tag1", "tag3" }; var collection3 = new TagCollection(); collection1.Equals(collection2).Should().BeFalse(); collection1.Equals(collection3).Should().BeFalse(); collection2.Equals(collection3).Should().BeFalse(); }
public void Equals_should_return_true_with_tag_collections_with_other_initialization_order() { var collection1 = new TagCollection { "tag1", { "tag2", "value1" }, "tag3" }; var collection2 = new TagCollection { { "tag2", "value1" }, "tag1", "tag3" }; collection1.Equals(collection2).Should().BeTrue(); }
public void Equals_should_return_false_on_tag_collections_with_values_in_different_cases() { var collection1 = new TagCollection { "tag1", { "tag2", "value1" }, "tag3" }; var collection2 = new TagCollection { "tag1", { "tag2", "VALUE1" }, "tag3" }; collection1.Equals(collection2).Should().BeFalse(); }
public void Equals_should_return_false_with_other_members_count() { var collection1 = new TagCollection { "tag1", { "tag2", "value1" }, "tag3", "tag4" }; var collection2 = new TagCollection { "TAG1", { "tag2", "value1" }, "tag3" }; collection1.Equals(collection2).Should().BeFalse(); }
public void Equals_should_return_true_on_tag_collections_with_same_key_in_different_cases() { var collection1 = new TagCollection { "tag1", { "tag2", "value1" }, "tag3" }; var collection2 = new TagCollection { "TAG1", { "tag2", "value1" }, "tag3" }; collection1.Equals(collection2).Should().BeTrue(); }