public void Two_instances_are_different_if_page_number_is_not_the_same(int page) { var sut1 = new Z80Page(page); var sut2 = new Z80Page((page + 1) & 3); Assert.True(sut1 != sut2); Assert.False(sut1.Equals(sut2)); }
public void Two_instances_are_equal_if_page_number_is_the_same(int page) { var sut1 = new Z80Page(page); var sut2 = new Z80Page(page); Assert.True(sut1 == sut2); Assert.True(sut1.Equals(sut2)); }