OSDN Git Service

テストのビルドが失敗していた
[fooeditengine/FooEditEngine.git] / WPF / UnitTest / DummyRender.cs
index 9ea3b5e..abe65d6 100644 (file)
@@ -120,7 +120,7 @@ namespace UnitTest
             throw new NotImplementedException();
         }
 
-        public void DrawOneLine(LineToIndexTable lti, int row, double x, double y, IEnumerable<Selection> SelectRanges)
+        public void DrawOneLine(Document doc, LineToIndexTable lti, int row, double x, double y)
         {
             throw new NotImplementedException();
         }
@@ -130,11 +130,6 @@ namespace UnitTest
             throw new NotImplementedException();
         }
 
-        public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable<Marker> MarkerRanges)
-        {
-            return new DummyTextLayout();
-        }
-
         public void DrawGripper(Point p, double radius)
         {
             throw new NotImplementedException();
@@ -147,6 +142,11 @@ namespace UnitTest
         public void EndClipRect()
         {
         }
+
+        public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable<Marker> MarkerRanges, IEnumerable<Selection> Selections, double WrapWidth)
+        {
+            return new DummyTextLayout();
+        }
     }
     class DummyTextLayout : ITextLayout
     {
@@ -199,5 +199,15 @@ namespace UnitTest
         {
             this.Disposed = true;
         }
+
+        public int GetIndexFromPostion(double x, double y)
+        {
+            return 0;
+        }
+
+        public Point GetPostionFromIndex(int index)
+        {
+            return new Point(0,0);
+        }
     }
 }