public void Size2F_EqualsObject() { var size1 = new Size2F(123.45f, 456.78f); var size2 = new Size2F(123.45f, 456.78f); TheResultingValue(size1.Equals((Object)size2)).ShouldBe(true); TheResultingValue(size1.Equals("This is a test")).ShouldBe(false); }
public void Size2F_EqualsSize2F() { var size1 = new Size2F(123.45f, 456.78f); var size2 = new Size2F(123.45f, 456.78f); var size3 = new Size2F(123.45f, 555.55f); var size4 = new Size2F(222.22f, 456.78f); TheResultingValue(size1.Equals(size2)).ShouldBe(true); TheResultingValue(size1.Equals(size3)).ShouldBe(false); TheResultingValue(size1.Equals(size4)).ShouldBe(false); }