Explorar o código

Add mocks for geometry impls.

Dariusz Komosinski %!s(int64=6) %!d(string=hai) anos
pai
achega
12fc28e2d0
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      tests/Avalonia.UnitTests/MockPlatformRenderInterface.cs

+ 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)