Exemplo n.º 1
0
        public void CheckCharacterWeightsShouldThrowExceptionIfCharacterWeightIsNull()
        {
            // Arrange
            var sut = new SedolValidator();

            // Act
            sut.CheckCharacterWeights(null);

            // Assert - exception expected.
        }
Exemplo n.º 2
0
        public void CheckCharacterWeightsShouldThrowExceptionIfCharacterWeightSizeDiffersFromExpectedSedolLength()
        {
            // Arrange
            var sut = new SedolValidator();
            var characterWeightsBiggerThanExpectedSedol = new int[SedolValidator.ExpectedSedolLength + 1];

            // Act
            sut.CheckCharacterWeights(characterWeightsBiggerThanExpectedSedol);

            // Assert - exception expected.
        }
Exemplo n.º 3
0
        public void CheckCharacterWeightsShouldNotThrowAnyExceptionIfCharacterWeightSizeEqualToExpectedSedolLength()
        {
            // Arrange
            var sut = new SedolValidator();
            var characterWeightsWithExpectedSedolLength = new int[SedolValidator.ExpectedSedolLength];

            // Act
            sut.CheckCharacterWeights(characterWeightsWithExpectedSedolLength);

            // Assert
            Assert.IsTrue(true);
        }