public void CompareTo_uses_Height() { int expected = -1; int width = 119; CropSize left = new CropSize(width, 0); CropSize right = new CropSize(width, 1); Assert.AreEqual(expected, left.CompareTo(right)); }
public void CompareTo_uses_Width() { int expected = -1; int height = 104; CropSize left = new CropSize(0, height); CropSize right = new CropSize(1, height); Assert.AreEqual(expected, left.CompareTo(right)); }
public void Two_CropSize_CompareTo() { int expected = 0; int width = 119; int height = 104; CropSize left = new CropSize(width, height); CropSize right = new CropSize(width, height); Assert.AreEqual(expected, left.CompareTo(right)); }