예제 #1
0
 public void NormalizeExternalFormat_WithCorrectLayout_ShouldWork()
 {
     //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 = @"
     yyy
     yyy
     yyy
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     bbb rrr ggg ooo
     hhh
     hhh
     hhh
     ";
     //Act
     string actual = positionHelper.NormalizeExternalFormat(TestPosition);
     //Assert
     Assert.AreEqual(Expected, actual);
 }
예제 #2
0
 private static void AssertPositionsAreEqual(string expected, string actual)
 {
     var positionHelper = new PositionHelper();
     Assert.AreEqual(positionHelper.NormalizeExternalFormat(expected), positionHelper.NormalizeExternalFormat(actual));
 }