public void ApplyTo_ScaleToNearestEvenDim_Test2() { var target = new WindowOutline { Size = new SizeF(902.917969f, 902.917969f), TopLeft = new SizeF(451.458954f, 902.917969f), TopRight = new SizeF(451.459f, 902.917969f) }; var topObject = new MyTopObject(); target.ApplyTo(topObject); VerifySize(new SizeF(902, 902), topObject.Dimensions.Size); var slant = new SizeF(451, 902); VerifySize(slant, topObject.get_Slants(0)); VerifySize(slant, topObject.get_Slants(1)); VerifySize(SizeF.Empty, topObject.get_Slants(2)); VerifySize(SizeF.Empty, topObject.get_Slants(3)); }
public void ApplyTo_ScaleToNearestEvenDim_Test() { var target = new WindowOutline { Size = new SizeF(799.181641f, 799.1816f), TopLeft = new SizeF(399.59082f, 399.59082f), TopRight = new SizeF(399.59082f, 399.590851f), BottomRight = new SizeF(399.590851f, 399.590729f), BottomLeft = new SizeF(399.59082f, 399.590759f) }; var topObject = new MyTopObject(); target.ApplyTo(topObject); VerifySize(new SizeF(800, 800), topObject.Dimensions.Size); var slant = new SizeF(400, 400); for (int i = 0; i < 4; i++) { VerifySize(slant, topObject.get_Slants(i)); } }