public void EqualsReturnsFalseIfOnlyOneElementIsNull() { var key = new KeyBitmap(4, 4, null); KeyBitmap.Equals(null, null).Should().BeTrue(); KeyBitmap.Equals(null, key).Should().BeFalse(); KeyBitmap.Equals(key, null).Should().BeFalse(); }
public void EqualsReturnsFalseIfHeightIsDifferent() { var key1 = new KeyBitmap(4, 4, null); var key2 = new KeyBitmap(4, 3, null); var key3 = new KeyBitmap(4, 4, null); key1.Should().NotBe(key2); key1.Should().NotBeSameAs(key2); key1.Should().Be(key3); key1.Should().NotBeSameAs(key3); KeyBitmap.Equals(key1, key3).Should().BeTrue(); }