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