示例#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);
        }