OSDN Git Service

テストのビルドが失敗していた
authortest <test@yahoo.co.jp>
Sat, 19 Dec 2020 04:03:08 +0000 (13:03 +0900)
committertest <test@yahoo.co.jp>
Sat, 19 Dec 2020 04:03:08 +0000 (13:03 +0900)
WPF/UnitTest/DummyRender.cs

index dd146d4..abe65d6 100644 (file)
@@ -130,11 +130,6 @@ namespace UnitTest
             throw new NotImplementedException();
         }
 
-        public ITextLayout CreateLaytout(string str, SyntaxInfo[] syntaxCollection, IEnumerable<Marker> MarkerRanges, IEnumerable<Selection> SelectRanges)
-        {
-            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);
+        }
     }
 }