Пример #1
0
 public void GetDirIndexTest()
 {
     Assert.AreEqual(0, DirUtils.GetDirIndex(Direction.SOUTH), "SOUTH did not produce 0");
     Assert.AreEqual(1, DirUtils.GetDirIndex(Direction.NORTH), "NORTH did not produce 1");
     Assert.AreEqual(2, DirUtils.GetDirIndex(Direction.EAST), "EAST did not produce 2");
     Assert.AreEqual(3, DirUtils.GetDirIndex(Direction.WEST), "WEST did not produce 3");
 }