コード例 #1
0
 public int GetLetterCount_ParametersAreValid_ReturnsCharsCount(string str)
 {
     // Act
     return(DoWhileMethods.GetLetterCount(str));
 }
コード例 #2
0
 public void GetLetterCount_StrIsNull_ThrowsException()
 {
     // Act
     Assert.Throws <ArgumentNullException>(() => DoWhileMethods.GetLetterCount(null));
 }