예제 #1
0
        public void RemoveChecksumDigitShouldThrowExceptionIfEmptyStringProvided()
        {
            // Arrange
            var sut = new SedolValidator();

            // Act
            var actual = sut.RemoveChecksumDigit(string.Empty);

            // Assert - exception expected
        }
예제 #2
0
        public void RemoveChecksumDigitShouldThrowExceptionIfNullInputProvided()
        {
            // Arrange
            var sut = new SedolValidator();

            // Act
            var actual = sut.RemoveChecksumDigit(null);

            // Assert - exception expected
        }
예제 #3
0
        public void RemoveChecksumDigitShouldReturnEmptyStringIfSingleCharacterProvidedAsInput()
        {
            // Arrange
            var sut = new SedolValidator();

            // Act
            var actual = sut.RemoveChecksumDigit("1");

            // Assert
            Assert.AreEqual(string.Empty, actual);
        }
예제 #4
0
        public void RemoveChecksumDigitShouldRemoveLastCharacterFromMulticharacterString()
        {
            // Arrange
            var sut = new SedolValidator();

            // Act
            var actual = sut.RemoveChecksumDigit("123");

            // Assert
            Assert.AreEqual("12", actual);
        }