mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
931 B
31 lines
931 B
// Copyright (c) Six Labors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System;
|
|
|
|
using SixLabors.ImageSharp.PixelFormats;
|
|
|
|
namespace SixLabors.ImageSharp.Tests
|
|
{
|
|
public abstract partial class ImageFrameCollectionTests : IDisposable
|
|
{
|
|
protected Image<Rgba32> Image { get; }
|
|
|
|
protected ImageFrameCollection<Rgba32> Collection { get; }
|
|
|
|
public ImageFrameCollectionTests()
|
|
{
|
|
// Needed to get English exception messages, which are checked in several tests.
|
|
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");
|
|
|
|
this.Image = new Image<Rgba32>(10, 10);
|
|
this.Collection = new ImageFrameCollection<Rgba32>(this.Image, 10, 10, default(Rgba32));
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
this.Image.Dispose();
|
|
this.Collection.Dispose();
|
|
}
|
|
}
|
|
}
|
|
|