// // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageSharp.Tests { using Xunit; /// /// Tests the struct. /// public class SizeTests { /// /// Tests the equality operators for equality. /// [Fact] public void AreEqual() { Size first = new Size(100, 100); Size second = new Size(100, 100); Assert.Equal(first, second); } /// /// Tests the equality operators for inequality. /// [Fact] public void AreNotEqual() { Size first = new Size(0, 100); Size second = new Size(100, 100); Assert.NotEqual(first, second); } /// /// Tests whether the size constructor correctly assign properties. /// [Fact] public void ConstructorAssignsProperties() { Size first = new Size(4, 5); Assert.Equal(4, first.Width); Assert.Equal(5, first.Height); } } }