Exemple #1
0
    public void OneArgFuncTest()
    {
        int round = 5;
        var names = OneArgFunctionTypeExtensions.GetNames();

        foreach (string func in names)
        {
            CompareCalcs(func + "(1)", round);
        }
        Assert.Pass();
    }
Exemple #2
0
    public void IgnoreCaseTest()
    {
        int round = 5;
        var names = OneArgFunctionTypeExtensions.GetNames();

        foreach (string func in names.Select(x => x.ToUpper()))
        {
            CompareCalcs(func + "(1)", round);
        }

        foreach (string func in names.Select(x => x.ToLower()))
        {
            CompareCalcs(func + "(1)", round);
        }

        Assert.Pass();
    }