Exemplo n.º 1
0
    public void MyTest1()
    {
        string[] races = new string[] {
            "A",
            "C"
        };
        string ticket     = "AH";
        int    __expected = -1;
        int    __result   = new HorseRacing().validateTicket(races, ticket);

        Assert.AreEqual(__expected, __result);
    }
Exemplo n.º 2
0
    public void Example0()
    {
        string[] races = new string[] {
            "AbX",
            "CdeF"
        };
        string ticket     = "AC";
        int    __expected = 2;
        int    __result   = new HorseRacing().validateTicket(races, ticket);

        Assert.AreEqual(__expected, __result);
    }
Exemplo n.º 3
0
    public void Example5()
    {
        string[] races = new string[] {
            "a",
            "b",
            "c",
            "d",
            "e",
            "f"
        };
        string ticket     = "bead";
        int    __expected = 4;
        int    __result   = new HorseRacing().validateTicket(races, ticket);

        Assert.AreEqual(__expected, __result);
    }