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(); }
public void EqualsReturnsFalseIfDataDoesNotMatch() { var key1 = new KeyBitmap(1, 1, null); var key2 = new KeyBitmap(1, 1, new byte[3]); key1.Should().NotBe(key2); key2.Should().NotBe(key1); }
public void KeyBitmapsWithDifferentBgrValuesAreNotEqual() { var key1 = new KeyBitmap(1, 1, new byte[3]); var key2Data = new byte[3] { 1, 2, 3 }; var key2 = new KeyBitmap(1, 1, key2Data); key1.Should().NotBe(key2); key2.Should().NotBe(key1); }