Example #1
0
    public static void GetPoints_ContainsAllPointsInRect()
    {
        var rect = new IntRect(1, 1, 3, 3);

        var points = rect.GetPoints();

        Assert.AreEqual(9, points.Count);

        for (int i = 0; i < points.Count; ++i)
            Assert.That(rect.Contains(points[i]));
    }