public void RemoveChecksumDigitShouldThrowExceptionIfEmptyStringProvided() { // Arrange var sut = new SedolValidator(); // Act var actual = sut.RemoveChecksumDigit(string.Empty); // Assert - exception expected }
public void RemoveChecksumDigitShouldThrowExceptionIfNullInputProvided() { // Arrange var sut = new SedolValidator(); // Act var actual = sut.RemoveChecksumDigit(null); // Assert - exception expected }
public void RemoveChecksumDigitShouldReturnEmptyStringIfSingleCharacterProvidedAsInput() { // Arrange var sut = new SedolValidator(); // Act var actual = sut.RemoveChecksumDigit("1"); // Assert Assert.AreEqual(string.Empty, actual); }
public void RemoveChecksumDigitShouldRemoveLastCharacterFromMulticharacterString() { // Arrange var sut = new SedolValidator(); // Act var actual = sut.RemoveChecksumDigit("123"); // Assert Assert.AreEqual("12", actual); }