Quasar/Quasar.Common.Tests/Compression/JpgCompression.Tests.cs

25 lines
634 B
C#
Raw Permalink Normal View History

2018-10-04 19:49:24 +00:00
using Microsoft.VisualStudio.TestTools.UnitTesting;
2018-08-18 16:55:25 +00:00
using Quasar.Common.Video.Compression;
2018-10-04 19:49:24 +00:00
using System;
using System.Drawing;
2018-10-04 19:49:24 +00:00
namespace Quasar.Common.Tests.Compression
{
[TestClass]
public class JpgCompressionTests
{
[TestMethod, TestCategory("Compression")]
2015-05-14 08:26:28 +00:00
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);
}
}
2018-10-05 21:58:09 +00:00
}