Esempio n. 1
0
 public void ConvertExernalFormatToLine_WithTheMostCompactLayout_ShouldWork()
 {
     //WIP
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = @"yyy
     yyy
     yyy
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     hhh
     hhh
     hhh
     ";
     const string Expected = @"yyyyyyyyybbbbbbbbbrrrrrrrrrgggggggggooooooooohhhhhhhhh";
     //Act
     string actual = positionHelper.ConvertExernalFormatToLine(TestPosition);
     //Assert
     Assert.AreEqual(Expected, actual);
 }
Esempio n. 2
0
 public void ConvertExernalFormatToLine_WithAWideUpperCaseLayout_ShouldWork()
 {
     //WIP
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = @"
       Y  Y Y
      Y    Y Y
      Y Y Y
     B BB R RR G GG O  O O
      BB B RR R GG G   OOO
      B  BB RR R G GG O  OO
       H H  H
     H H H
     H H    H
     ";
     const string Expected = @"yyyyyyyyybbbbbbbbbrrrrrrrrrgggggggggooooooooohhhhhhhhh";
     //Act
     string actual = positionHelper.ConvertExernalFormatToLine(TestPosition);
     //Assert
     Assert.AreEqual(Expected, actual);
 }