using System; using System.Drawing; using Microsoft.VisualStudio.TestTools.UnitTesting; using xClient.Core.Compression; namespace xClient.Tests.Core.Compression { [TestClass] public class JpgCompressionTests { [TestMethod, TestCategory("Compression")] public void CompressionTest() { var quality = Int64.MaxValue; var jpg = new JpgCompression(quality); var bitmap = new Bitmap(200, 200); var result = jpg.Compress(bitmap); Assert.IsNotNull(result); CollectionAssert.AllItemsAreNotNull(result); } } }