示例#1
0
 public void CompactLine_WithInvalidCharacter_ShouldThrowAnException()
 {
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = @"yyyyyyyyybbbbbbbbbrrrrrrrrrgggggggggooooooooohhhhhhhhha";
     //Act
     positionHelper.CompactLine(TestPosition);
     //Assert is implicit
 }
示例#2
0
 public void CompactLine_WithNullLine_ShouldThrowAnException()
 {
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = null;
     //Act
     positionHelper.CompactLine(TestPosition);
     //Assert is implicit
 }
示例#3
0
 public void CompactLine_WithAUpperCaseLineShouldWork_ShouldThrowAnException()
 {
     //Arrange
     var positionHelper = new PositionHelper();
     const string TestPosition = @"YYYYYYYYYBBBBBBBBBRRRRRRRRRGGGGGGGGGOOOOOOOOOHHHHHHHHH";
     const string Expected = @"yyyyyyyyybbbbbbbbbrrrrrrrrrgggggggggooooooooohhhhhhhhh";
     //Act
     string actual = positionHelper.CompactLine(TestPosition);
     //Assert
     Assert.AreEqual(Expected, actual);
 }