public void build_two_by_two_field_and_one_of_mine_bottomleftcorner(int xPos, int yPos, int expect) { MineFields fields = new MineFields(); fields.Create(2, 2); fields.Mine(0, 1); Assert.That(fields.GetHint(xPos, yPos), Is.EqualTo(expect)); }
public void build_field_size_of_one_by_one_and_one_mine() { MineFields fields = new MineFields(); fields.Create(1, 1); fields.Mine(0, 0); Assert.That(fields.GetHint(0, 0), Is.EqualTo(-1)); }