Example #1
0
 private void VerifySegmentDrawing(ParaBox para, StringBox third, MockSegment.DrawInsertionPointArgs drawInsertionPointArgs, int top)
 {
     Assert.AreEqual(third.IchMin, drawInsertionPointArgs.IchBase);
     Assert.AreEqual(m_gm.VwGraphics, drawInsertionPointArgs.Graphics);
     Assert.AreEqual(true, drawInsertionPointArgs.AssocPrev, "assoc prev should match IP");
     ParaTests.VerifySimpleRect(drawInsertionPointArgs.RcSrc, -2, top, 96, 100);
     ParaTests.VerifySimpleRect(drawInsertionPointArgs.RcDst, 0, 10, 120, 128);
     Assert.AreEqual(drawInsertionPointArgs.Ich, para.Source.Length);
     Assert.AreEqual(drawInsertionPointArgs.On, true, "Should currently always pass true to segment drawIP routine");
     Assert.AreEqual(drawInsertionPointArgs.DrawMode, LgIPDrawMode.kdmNormal, "all drawing modes normal till we test BIDI with Graphite");
 }
Example #2
0
 public void DrawInsertionPoint(int ichBase, IVwGraphics _vg, Rect rcSrc, Rect rcDst, int ich, bool fAssocPrev, bool fOn, LgIPDrawMode dm)
 {
     LastDrawIpCall = new MockSegment.DrawInsertionPointArgs
     {
         IchBase   = ichBase,
         Graphics  = _vg,
         RcSrc     = rcSrc,
         RcDst     = rcDst,
         Ich       = ich,
         AssocPrev = fAssocPrev,
         On        = fOn,
         DrawMode  = dm
     };
 }