public void GetByteWithBitsInHighNibbleCountRecursive_ArrayToSearchParameterIsNull_ThrowsArgumentNullException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetByteWithBitsInHighNibbleCountRecursive(null));
 }
 public int GetEvenNumberCountRecursive_ParametersAreValid_ReturnsResult(float[] arrayToSearch)
 {
     // Act
     return(ForMethods.GetEvenNumberCountRecursive(arrayToSearch));
 }
 public int GetByteWithBitsInHighNibbleCount_ParametersAreValid_ReturnsResult(byte[] arrayToSearch)
 {
     // Act
     return(ForMethods.GetByteWithBitsInHighNibbleCount(arrayToSearch));
 }
 public int GetNegativeIntegerCountRecursive_ParametersAreValid_ReturnsResult(int[] arrayToSearch)
 {
     // Act
     return(ForMethods.GetNegativeIntegerCountRecursive(arrayToSearch));
 }
 public void GetEvenNumberCountRecursive_ArrayToSearchParameterIsNull_ThrowsArgumentNullException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetEvenNumberCountRecursive(null));
 }
예제 #6
0
 public void GetLastIndexOfChar_NullString_ThrowsException()
 {
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetLastIndexOfChar(null, 'a'));
 }
 public void GetNegativeIntegerCount_ArrayToSearchParameterIsNull_ThrowsArgumentNullException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetNegativeIntegerCount(null));
 }
예제 #8
0
 public void GetIndexOfCharStartIndexCount_CountLessZero_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentOutOfRangeException>(() => ForMethods.GetIndexOfChar(string.Empty, 'a', 0, -1));
 }
예제 #9
0
 public int GetIndexOfChar_NonEmptyString_ReturnsPosition2(string str, char value, int startIndex, int count)
 {
     // Act
     return(ForMethods.GetIndexOfChar(str, value, startIndex, count));
 }
예제 #10
0
 public void GetIndexOfCharStartIndexCount_NullString_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetIndexOfChar(null, 'a', 0, 0));
 }
예제 #11
0
 public void GetIndexOfCharStartIndexCount_StartIndexGreaterStringLength_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentOutOfRangeException>(() => ForMethods.GetIndexOfChar(string.Empty, 'a', 1, 0));
 }
예제 #12
0
 public int GetIndexOfChar_NonEmptyString_ReturnsPosition(string str, char value)
 {
     // Act
     return(ForMethods.GetIndexOfChar(str, value));
 }
 public int GetUpperCharCountRecursive_ParameterIsValid_ReturnsResult(string str)
 {
     // Act
     return(ForMethods.GetUpperCharCountRecursive(str));
 }
 public void GetUpperCharCountRecursive_StrIsNull_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetUpperCharCountRecursive(null));
 }
 public int GetCharCount_ParameterIsValid_ReturnsCharsCount(string str)
 {
     // Act
     return(ForMethods.GetCharCount(str));
 }
 public void GetCharCount_StrIsNull_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetCharCount(null));
 }