public void CompactLine_WithInvalidCharacter_ShouldThrowAnException() { //Arrange var positionHelper = new PositionHelper(); const string TestPosition = @"yyyyyyyyybbbbbbbbbrrrrrrrrrgggggggggooooooooohhhhhhhhha"; //Act positionHelper.CompactLine(TestPosition); //Assert is implicit }
public void CompactLine_WithNullLine_ShouldThrowAnException() { //Arrange var positionHelper = new PositionHelper(); const string TestPosition = null; //Act positionHelper.CompactLine(TestPosition); //Assert is implicit }
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); }