コード例 #1
0
 public void GetByteWithBitsInHighNibbleCountRecursive_ArrayToSearchParameterIsNull_ThrowsArgumentNullException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetByteWithBitsInHighNibbleCountRecursive(null));
 }
コード例 #2
0
 public int GetEvenNumberCountRecursive_ParametersAreValid_ReturnsResult(float[] arrayToSearch)
 {
     // Act
     return(ForMethods.GetEvenNumberCountRecursive(arrayToSearch));
 }
コード例 #3
0
 public int GetByteWithBitsInHighNibbleCount_ParametersAreValid_ReturnsResult(byte[] arrayToSearch)
 {
     // Act
     return(ForMethods.GetByteWithBitsInHighNibbleCount(arrayToSearch));
 }
コード例 #4
0
 public int GetNegativeIntegerCountRecursive_ParametersAreValid_ReturnsResult(int[] arrayToSearch)
 {
     // Act
     return(ForMethods.GetNegativeIntegerCountRecursive(arrayToSearch));
 }
コード例 #5
0
 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'));
 }
コード例 #7
0
 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));
 }
コード例 #13
0
 public int GetUpperCharCountRecursive_ParameterIsValid_ReturnsResult(string str)
 {
     // Act
     return(ForMethods.GetUpperCharCountRecursive(str));
 }
コード例 #14
0
 public void GetUpperCharCountRecursive_StrIsNull_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetUpperCharCountRecursive(null));
 }
コード例 #15
0
 public int GetCharCount_ParameterIsValid_ReturnsCharsCount(string str)
 {
     // Act
     return(ForMethods.GetCharCount(str));
 }
コード例 #16
0
 public void GetCharCount_StrIsNull_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => ForMethods.GetCharCount(null));
 }