Browse Source

Add missing mocks

pull/3195/head
Benedikt Schroeder 6 years ago
parent
commit
46d3a91652
  1. 5
      tests/Avalonia.UnitTests/MockPlatformRenderInterface.cs
  2. 5
      tests/Avalonia.Visuals.UnitTests/VisualTree/MockRenderInterface.cs

5
tests/Avalonia.UnitTests/MockPlatformRenderInterface.cs

@ -78,5 +78,10 @@ namespace Avalonia.UnitTests
{
throw new NotImplementedException();
}
public IGlyphTypefaceImpl CreateGlyphTypeface(Typeface typeface)
{
return Mock.Of<IGlyphTypefaceImpl>();
}
}
}

5
tests/Avalonia.Visuals.UnitTests/VisualTree/MockRenderInterface.cs

@ -52,6 +52,11 @@ namespace Avalonia.Visuals.UnitTests.VisualTree
throw new NotImplementedException();
}
public IGlyphTypefaceImpl CreateGlyphTypeface(Typeface typeface)
{
throw new NotImplementedException();
}
public IWriteableBitmapImpl CreateWriteableBitmap(PixelSize size, Vector dpi, PixelFormat? fmt)
{
throw new NotImplementedException();

Loading…
Cancel
Save