示例#1
0
 public void ConvertLineToExternalFormat_WithTheMostCompactLayout_ShouldWork()
 {
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = @"yyyyyyyyybbbbbbbbbrrrrrrrrrgggggggggooooooooohhhhhhhhh";
     const string Expected = @"
     yyy
     yyy
     yyy
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     hhh
     hhh
     hhh
     ";
     //Act
     string actual = positionHelper.ConvertLineToExternalFormat(TestPosition);
     //Assert
     Assert.AreEqual(Expected, actual);
 }
示例#2
0
 public void ConvertLineToExternalFormat_WithAWideUpperCaseLayout_ShouldWork()
 {
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = @" YYYYYYYYY BBBBBBBBB RRRRRRRRR GGGGGGGGG OOOOOOOOO HHHHHHHHH ";
     const string Expected = @"
     yyy
     yyy
     yyy
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     hhh
     hhh
     hhh
     ";
     //Act
     string actual = positionHelper.ConvertLineToExternalFormat(TestPosition);
     //Assert
     Assert.AreEqual(Expected, actual);
 }