示例#1
0
 public void Two_2x2()
 {
     var sb = new StringBuilder();
     sb.AppendLine("2 2");
     sb.AppendLine("**");
     sb.AppendLine("**");
     sb.AppendLine("2 2");
     sb.AppendLine("**");
     sb.AppendLine("**");
     var reader = new FieldReader(sb.ToString());
     var output = reader.ReadField();
     Assert.That(output.Rows.ToString(), Is.EqualTo("**" + Environment.NewLine + "**"));
     output = reader.ReadField();
     Assert.That(output.Rows.ToString(), Is.EqualTo("**" + Environment.NewLine + "**"));
 }
示例#2
0
 private Field GetFieldWithHints(FieldReader reader)
 {
     return (new HintsPopulator(reader.ReadField())).GetHints();
 }