This test is failing sometimes on one of the CI

This commit is contained in:
Matthew Leibowitz 2017-04-21 23:14:58 +02:00
Родитель 20c715da2d
Коммит ca771d4333
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -77,8 +77,8 @@ namespace SkiaSharp.Tests
canvas.Scale(1, 2);
canvas.DrawText("Skia", 10, 60, paint);
Assert.AreEqual(SKColors.Black, bitmap.GetPixel(43, 50));
Assert.AreEqual(SKColors.White, bitmap.GetPixel(120, 50));
Assert.AreEqual(SKColors.Black, bitmap.GetPixel(43, 50), "Antialias (43, 50)");
Assert.AreEqual(SKColors.White, bitmap.GetPixel(120, 50), "Antialias (120, 50)");
}
using (var bitmap = new SKBitmap(new SKImageInfo(200, 100)))
@ -89,8 +89,8 @@ namespace SkiaSharp.Tests
canvas.Scale(1, 2);
canvas.DrawText("Skia", 10, 60, paint);
Assert.AreEqual(SKColors.Black, bitmap.GetPixel(43, 50));
Assert.AreEqual(SKColors.White, bitmap.GetPixel(120, 50));
Assert.AreEqual(SKColors.Black, bitmap.GetPixel(43, 50), "Non-Antialias (43, 50)");
Assert.AreEqual(SKColors.White, bitmap.GetPixel(120, 50), "Non-Antialias (120, 50)");
}
}
}