Ejemplo n.º 1
0
        public void FullSizePointRectangleHasTheRightNumberOfPoints()
        {
            var upperLeft  = SgfPoint.Parse("aa");
            var lowerRight = SgfPoint.Parse("ZZ");
            var rectangle  = new SgfPointRectangle(upperLeft, lowerRight);

            Assert.AreEqual(2704, rectangle.Count());
        }
Ejemplo n.º 2
0
        public void SinglePointRectangleIsProperlyCreated()
        {
            var single    = new SgfPoint(12, 2);
            var rectangle = new SgfPointRectangle(single);

            Assert.AreEqual(single, rectangle.UpperLeft);
            Assert.AreEqual(single, rectangle.LowerRight);
            Assert.AreEqual(1, rectangle.Count());
            Assert.AreEqual(single, rectangle.First());
        }