public CountQuotedPasswords ( string lines ) : int | ||
lines | string | |
리턴 | int |
public void AreQuotedPasswords() { var lp = new LogParser(); string[] lines = { string.Empty, "[INF] passWord", "\"passWord\"", "[INF] The message \"Please reset your password\" was ignored by the user" }; Assert.Equal(2, lp.CountQuotedPasswords(string.Join(Environment.NewLine, lines))); }