public void Two_CropSize_are_not_equal_if_Height_differs() { int width = 119; CropSize left = new CropSize(width, 0); CropSize right = new CropSize(width, 1); Assert.IsFalse(left.Equals(right)); Assert.IsFalse(left.Equals((object)right)); }
public void Two_CropSize_are_not_equal_if_Width_differs() { int height = 104; CropSize left = new CropSize(0, height); CropSize right = new CropSize(1, height); Assert.IsFalse(left.Equals(right)); Assert.IsFalse(left.Equals((object)right)); }
public void Two_CropSize_are_equal_if_Width_and_Height_match() { int width = 119; int height = 104; CropSize left = new CropSize(width, height); CropSize right = new CropSize(width, height); Assert.IsTrue(left.Equals(right)); Assert.IsTrue(left.Equals((object)right)); }
public void Evaluating_equals_returns_false_if_the_object_is_not_a_CropSize() { CropSize size = new CropSize(); object obj = new object(); Assert.IsFalse(size.Equals(obj)); }