Пример #1
0
        public void CheckCharacterWeightsShouldThrowExceptionIfCharacterWeightIsNull()
        {
            // Arrange
            var sut = new SedolValidator();

            // Act
            sut.CheckCharacterWeights(null);

            // Assert - exception expected.
        }
Пример #2
0
        public void CheckCharacterWeightsShouldThrowExceptionIfCharacterWeightSizeDiffersFromExpectedSedolLength()
        {
            // Arrange
            var sut = new SedolValidator();
            var characterWeightsBiggerThanExpectedSedol = new int[SedolValidator.ExpectedSedolLength + 1];

            // Act
            sut.CheckCharacterWeights(characterWeightsBiggerThanExpectedSedol);

            // Assert - exception expected.
        }
Пример #3
0
        public void CheckCharacterWeightsShouldNotThrowAnyExceptionIfCharacterWeightSizeEqualToExpectedSedolLength()
        {
            // Arrange
            var sut = new SedolValidator();
            var characterWeightsWithExpectedSedolLength = new int[SedolValidator.ExpectedSedolLength];

            // Act
            sut.CheckCharacterWeights(characterWeightsWithExpectedSedolLength);

            // Assert
            Assert.IsTrue(true);
        }