CountQuotedPasswords() public method

public CountQuotedPasswords ( string lines ) : int
lines string
return int
Exemplo n.º 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)));
    }