Exemplo n.º 1
0
 public void Test_2x2_Two_Mines()
 {
     var field = new Field()
                     {
                         ColumnCount = 2,
                         Rows = new FieldRows(new[] { "**", "22" })
                     };
     var populator = new HintsPopulator(field);
     Assert.That(populator.GetHints().Rows, Is.EquivalentTo(new[] { "**", "22" }));
 }
Exemplo n.º 2
0
 public void Test_1x1()
 {
     var field = new Field()
                     {
                         ColumnCount = 1,
                         Rows = new FieldRows(new [] { "*" })
                     };
     var populator = new HintsPopulator(field);
     Assert.That(populator.GetHints().Rows, Is.EquivalentTo(new[] { "*" }));
 }