// 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 Image { get; } protected ImageFrameCollection 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(10, 10); this.Collection = new ImageFrameCollection(this.Image, 10, 10, default(Rgba32)); } public void Dispose() { this.Image.Dispose(); this.Collection.Dispose(); } } }