mirror of https://github.com/quasar/Quasar.git
25 lines
634 B
C#
25 lines
634 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using Quasar.Common.Video.Compression;
|
|
using System;
|
|
using System.Drawing;
|
|
|
|
namespace Quasar.Common.Tests.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);
|
|
}
|
|
}
|
|
}
|