recrownedgtk/RecrownedGTK.Tests/Types/ResolutionTest.cs

23 lines
610 B
C#
Raw Normal View History

2020-02-23 18:56:15 +00:00
using NUnit.Framework;
using RecrownedGTK.Types;
namespace RecrownedGTK.Tests.Types {
[TestFixture]
public class ResolutionTest {
Resolution resolution;
[SetUp]
public void Setup() {
resolution = new Resolution(1920, 1080);
}
[Test]
public void TestArea() {
Assert.AreEqual(resolution.Area(), 1920*1080);
}
[Test]
public void TestAreaCompare() {
Resolution greaterResolution = new Resolution(3840, 2160);
Assert.Positive(greaterResolution.CompareTo(resolution));
}
}
}