Browse Source

remove outdated tests

pull/126/head
Anton Firszov 9 years ago
parent
commit
704bc17207
  1. 39
      tests/ImageSharp.Tests/Common/PixelDataPoolTests.cs

39
tests/ImageSharp.Tests/Common/PixelDataPoolTests.cs

@ -23,28 +23,6 @@ namespace ImageSharp.Tests
Assert.True(pixels.Length >= 1024);
}
[Fact]
public void PixelDataPool_Clean_RentsCleanArray()
{
for (int i = 16; i < 1024; i += 16)
{
Color[] pixels = PixelDataPool<Color>.Rent(i);
Assert.True(pixels.All(p => p == default(Color)));
PixelDataPool<Color>.Return(pixels);
}
for (int i = 16; i < 1024; i += 16)
{
Color[] pixels = PixelDataPool<Color>.Rent(i);
Assert.True(pixels.All(p => p == default(Color)));
PixelDataPool<Color>.Return(pixels);
}
}
[Fact]
public void PixelDataPoolDoesNotThrowWhenReturningNonPooled()
{
@ -55,23 +33,6 @@ namespace ImageSharp.Tests
Assert.True(pixels.Length >= 1024);
}
[Fact]
public void PixelDataPool_Clean_CleansRentedArray()
{
Color[] pixels = PixelDataPool<Color>.Rent(256);
for (int i = 0; i < pixels.Length; i++)
{
pixels[i] = Color.Azure;
}
Assert.True(pixels.All(p => p == Color.Azure));
PixelDataPool<Color>.Return(pixels);
Assert.True(pixels.All(p => p == default(Color)));
}
[Theory]
[InlineData(false)]
[InlineData(true)]

Loading…
Cancel
Save