From e09450250c40e7302fc5ce596087ffa584794904 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 18 Mar 2017 21:13:58 +0100 Subject: [PATCH] fixed PinnedImageBufferTests.GetRowSpanY() --- tests/ImageSharp.Tests/Common/PinnedImageBufferTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/Common/PinnedImageBufferTests.cs b/tests/ImageSharp.Tests/Common/PinnedImageBufferTests.cs index 7756b0aa9..a23f93a70 100644 --- a/tests/ImageSharp.Tests/Common/PinnedImageBufferTests.cs +++ b/tests/ImageSharp.Tests/Common/PinnedImageBufferTests.cs @@ -65,7 +65,7 @@ namespace ImageSharp.Tests.Common Assert.Equal(width * y, span.Start); Assert.Equal(width, span.Length); - Assert.Equal(buffer.Pointer + sizeof(int) * width * y, span.PointerAtOffset); + Assert.Equal(buffer.Pointer + sizeof(Foo) * width * y, span.PointerAtOffset); } } @@ -81,7 +81,7 @@ namespace ImageSharp.Tests.Common Assert.Equal(width * y + x, span.Start); Assert.Equal(width - x, span.Length); - Assert.Equal(buffer.Pointer + sizeof(int) * (width * y + x), span.PointerAtOffset); + Assert.Equal(buffer.Pointer + sizeof(Foo) * (width * y + x), span.PointerAtOffset); } }