예제 #1
0
        public void To()
        {
            var s = new CellLoc(1, 1);
            var e = new CellLoc(3, 3);
            var locs = s.To(e).Sort();
            var rlocs = e.To(s).Sort();

            Assert.AreEqual(locs.Print(), rlocs.Print());
            Assert.AreEqual("([1,1],[1,2],[1,3],[2,1],[2,2],[2,3],[3,1],[3,2],[3,3])", locs.Print());
        }
예제 #2
0
 public void ToSelf()
 {
     var s = new CellLoc(5, 5);
     var locs = s.To(s);
     Assert.AreEqual("([5,5])", locs.Print());
 }