public void CheckCharacterWeightsShouldThrowExceptionIfCharacterWeightIsNull() { // Arrange var sut = new SedolValidator(); // Act sut.CheckCharacterWeights(null); // Assert - exception expected. }
public void CheckCharacterWeightsShouldThrowExceptionIfCharacterWeightSizeDiffersFromExpectedSedolLength() { // Arrange var sut = new SedolValidator(); var characterWeightsBiggerThanExpectedSedol = new int[SedolValidator.ExpectedSedolLength + 1]; // Act sut.CheckCharacterWeights(characterWeightsBiggerThanExpectedSedol); // Assert - exception expected. }
public void CheckCharacterWeightsShouldNotThrowAnyExceptionIfCharacterWeightSizeEqualToExpectedSedolLength() { // Arrange var sut = new SedolValidator(); var characterWeightsWithExpectedSedolLength = new int[SedolValidator.ExpectedSedolLength]; // Act sut.CheckCharacterWeights(characterWeightsWithExpectedSedolLength); // Assert Assert.IsTrue(true); }