示例#1
0
 private void AssertOffsetEquals(XY src, XY dest, XY expectedOffset)
 {
     Assert.AreEqual(expectedOffset, src.GetOffset(dest));
 }
        private int GetSpaceNumber(XY spaceLocation, XY wallLocation)
        {
            var offset = wallLocation.GetOffset(spaceLocation);

            return(_offsetNeightborCoordinates[offset]);
        }