Testing.Get_Tests C# (CSharp) Method

Get_Tests() private method

private Get_Tests ( dynamic, data ) : object
data dynamic,
return object
    public static object Get_Tests(dynamic data)
    {
        var types = from t in Assembly.GetExecutingAssembly().GetTypes()
                    where t.GetCustomAttributes(typeof(TestClassAttribute), true).Length > 0
                    orderby t.FullName
                    select new KeyValuePair<string, string[]>(t.FullName,
                        (from m in t.GetMethods(BindingFlags.Public | BindingFlags.Instance)
                         where m.GetCustomAttributes(typeof(TestMethodAttribute), true).Length > 0
                         orderby m.Name
                         select m.Name).ToArray()
                    );
        return types.ToArray();
    }