public void TwoDictionariesWhereOneHasOneEntryExtra_ShouldBeFalse() { _dictionary1["test1"] = "value1"; _dictionary1["test2"] = "value2"; _dictionary2["test1"] = "value1"; AttributesComparer.Equals(_dictionary1, _dictionary2).Should().BeFalse(); }
public void TwoDictionariesWithEachTwoEqualEntries_ShouldBeEqual() { _dictionary1["test1"] = "value1"; _dictionary1["test2"] = "value2"; _dictionary2["test1"] = "value1"; _dictionary2["test2"] = "value2"; AttributesComparer.Equals(_dictionary1, _dictionary2).Should().BeTrue(); }
public void TwoDictionariesWhereMostEntriesAreEqualButTheUnequalEntriesAreExcludedByKey_ShouldBeTrue() { _dictionary1["test1"] = "value1"; _dictionary1["test2"] = "value2"; _dictionary2["test1"] = "w sfqffqf"; _dictionary2["test2"] = "value2"; AttributesComparer.Equals(_dictionary1, _dictionary2, new[] { "test1" }).Should().BeTrue(); }
public void TwoEmptyDictionaries_ShouldBeEqual() { AttributesComparer.Equals(_dictionary1, _dictionary2).Should().BeTrue(); }