private static void AssertEqual(ElementHandleBoundingBoxResult boxA, ElementHandleBoundingBoxResult boxB) { Assert.Equal(boxA.X, boxB.X); Assert.Equal(boxA.Y, boxB.Y); Assert.Equal(boxA.Width, boxB.Width); Assert.Equal(boxA.Height, boxB.Height); }
private static void AssertEqual(float X, float Y, float Width, float Height, ElementHandleBoundingBoxResult box) { Assert.Equal(X, box.X); Assert.Equal(Y, box.Y); Assert.Equal(Width, box.Width); Assert.Equal(Height, box.Height); }
/// <summary> /// Determines whether the specified <see cref="ElementHandleBoundingBoxResult"/> is equal to the current <see cref="ElementHandleBoundingBoxResult"/>. /// </summary> /// <param name="other">The <see cref="ElementHandleBoundingBoxResult"/> to compare with the current <see cref="ElementHandleBoundingBoxResult"/>.</param> /// <returns><c>true</c> if the specified <see cref="ElementHandleBoundingBoxResult"/> is equal to the current /// <see cref="ElementHandleBoundingBoxResult"/>; otherwise, <c>false</c>.</returns> public bool Equals(ElementHandleBoundingBoxResult other) => other != null && other.X == X && other.Y == Y && other.Height == Height && other.Width == Width;