public void Inflate_Test1() { PDFUnit t = 10; PDFUnit r = 20; PDFUnit b = 40; PDFUnit l = 30; PDFThickness target = new PDFThickness(t, r, b, l); PDFUnit all = new PDFUnit(10); target.Inflate(all); Assert.AreEqual(l + all, target.Left); Assert.AreEqual(r + all, target.Right); Assert.AreEqual(t + all, target.Top); Assert.AreEqual(b + all, target.Bottom); }
public void Inflate_Test2() { PDFUnit t = 10; PDFUnit r = 20; PDFUnit b = 40; PDFUnit l = 30; PDFThickness target = new PDFThickness(t, r, b, l); target.Inflate(t, r, b, l); Assert.AreEqual(l + l, target.Left); Assert.AreEqual(r + r, target.Right); Assert.AreEqual(t + t, target.Top); Assert.AreEqual(b + b, target.Bottom); }
public void Inflate_Test() { PDFUnit t = 10; PDFUnit r = 20; PDFUnit b = 40; PDFUnit l = 30; PDFThickness target = new PDFThickness(t, r, b, l); PDFUnit w = new PDFUnit(5); PDFUnit h = new PDFUnit(10); target.Inflate(w, h); Assert.AreEqual(l + w, target.Left); Assert.AreEqual(r + w, target.Right); Assert.AreEqual(t + h, target.Top); Assert.AreEqual(b + h, target.Bottom); }