Example #1
0
    static void _OnRunClassFile(FileNode f, FileNode projFolder)
    {
        if (!s_isRegisteredLinkRCF)
        {
            s_isRegisteredLinkRCF = true; SciTags.AddCommonLinkTag("+runClass", _SciLink_RunClassFile);
        }
        var ids = f.IdStringWithWorkspace;
        var s2  = projFolder != null || f.Name.Eqi("global.cs") ? "" : $" or project (<+runClass \"2|{ids}\">create<>). Or <+runClass \"1|{ids}\">change<> role";

        print.it($"<>Cannot run '{f.Name}'. It is a class file. Need a test script (<+runClass \"3|{ids}\">create<>){s2}.");
    }
Example #2
0
File: Run.cs Project: alexfordc/Au
    static void _OnRunClassFile(FileNode f, FileNode projFolder)
    {
        if (!s_isRegisteredLinkRCF)
        {
            s_isRegisteredLinkRCF = true; SciTags.AddCommonLinkTag("+runClass", _SciLink_RunClassFile);
        }
        var ids = f.IdStringWithWorkspace;
        var s2  = projFolder != null ? "" : $", project (<+runClass \"2|{ids}\">create<>) or role exeProgram (<+runClass \"1|{ids}\">add<>)";

        AOutput.Write($"<>Cannot run '{f.Name}'. It is a class file without a test script (<+runClass \"3|{ids}\">create<>){s2}.");
    }