CountQuotedPasswords() 공개 메소드

public CountQuotedPasswords ( string lines ) : int
lines string
리턴 int
예제 #1
0
    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)));
    }