public void Size2DGetHashCode() { tlog.Debug(tag, $"Size2DGetHashCode START"); var testingTarget = new Size2D(10, 20); Assert.IsNotNull(testingTarget, "Can't create success object Size2D"); Assert.IsInstanceOf <Size2D>(testingTarget, "Should be an instance of Size2D type."); var result = testingTarget.GetHashCode(); Assert.IsTrue(result >= Int32.MinValue && result <= Int32.MaxValue, "The value of hash is out of Integer range"); testingTarget.Dispose(); tlog.Debug(tag, $"Size2DGetHashCode END (OK)"); }