Exemplo n.º 1
0
    public static int Main()
    {
        StringIndexOf test = new StringIndexOf();

        TestLibrary.TestFramework.BeginTestCase("StringIndexOf");

        if (test.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return(100);
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return(0);
        }
    }
Exemplo n.º 2
0
 public List(string head, IIndexOf tail)
 {
     Head = new StringIndexOf(head);
     Tail = tail;
 }
Exemplo n.º 3
0
    public static int Main()
    {
        StringIndexOf test = new StringIndexOf();

        TestLibrary.TestFramework.BeginTestCase("StringIndexOf");

        if (test.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return 100;
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return 0;
        }
    }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            IAlgorithm a = new StringIndexOf();

            a.Run();
        }