Przeglądaj źródła

Add mocks for geometry impls.

Dariusz Komosinski 6 lat temu
rodzic
commit
12fc28e2d0

+ 3 - 3
tests/Avalonia.UnitTests/MockPlatformRenderInterface.cs

@@ -24,17 +24,17 @@ namespace Avalonia.UnitTests
 
         public IEllipseGeometryImpl CreateEllipseGeometry(Rect rect)
         {
-            throw new NotImplementedException();
+            return Mock.Of<IEllipseGeometryImpl>();
         }
 
         public ILineGeometryImpl CreateLineGeometry(Point p1, Point p2)
         {
-            throw new NotImplementedException();
+            return Mock.Of<ILineGeometryImpl>();
         }
 
         public IRectangleGeometryImpl CreateRectangleGeometry(Rect rect)
         {
-            throw new NotImplementedException();
+            return Mock.Of<IRectangleGeometryImpl>();
         }
 
         public IRenderTarget CreateRenderTarget(IEnumerable<object> surfaces)