IsPaired() публичный статический Метод

public static IsPaired ( string input ) : bool
input string
Результат bool
    public void Paired_and_nested_brackets()
    {
        var value = "([{}({}[])])";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Simple_nested_brackets()
    {
        var value = "{[]}";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Several_paired_brackets()
    {
        var value = "{}[]";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Paired_square_brackets()
    {
        var value = "[]";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Partially_paired_brackets()
    {
        var value = "{[])";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Paired_and_wrong_nested_brackets()
    {
        var value = "[({]})";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Paired_with_whitespace()
    {
        var value = "{ }";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Unpaired_brackets()
    {
        var value = "[[";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Wrong_ordered_brackets()
    {
        var value = "}{";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Empty_string()
    {
        var value = "";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Complex_latex_expression()
    {
        var value = "\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Math_expression()
    {
        var value = "(((185 + 223.85) * 15) - 543)/2";

        Assert.True(MatchingBrackets.IsPaired(value));
    }
    public void Too_many_closing_brackets()
    {
        var value = "[]]";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Paired_and_incomplete_brackets()
    {
        var value = "{}[";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Unopened_closing_brackets()
    {
        var value = "{[)][]}";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Wrong_closing_bracket()
    {
        var value = "{]";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
    public void Unpaired_and_nested_brackets()
    {
        var value = "([{])";

        Assert.False(MatchingBrackets.IsPaired(value));
    }
 public void IsPaired_ShouldBeNullSafe()
 {
     Assert.True(MatchingBrackets.IsPaired(null));
 }