コード例 #1
0
        public void GetXRangeForFirstRing_OfWidth2_ShallGetProperRange_2()
        {
            var result = MapPiecesSelector.GetXRangeForRing(5, 6, 1, 2);

            Assert.AreEqual(3, result.x);
            Assert.AreEqual(7, result.y);
        }
コード例 #2
0
        public void GetXRangeForFirstRing_OfWidth1_ShallGetProperRange_1()
        {
            var result = MapPiecesSelector.GetXRangeForRing(4, 4, 1, 1);

            Assert.AreEqual(3, result.x);
            Assert.AreEqual(5, result.y);
        }