Exemple #1
0
        public void Run()
        {
            var input  = AuxiliarMethods.ReadFiles("CamelCase", true);
            var output = AuxiliarMethods.ReadFiles("CamelCase", false);

            for (int i = 0; i < input.Count; i++)
            {
                AuxiliarMethods.Assert("CamelCase", i, NumberOfWords(input[i]), output[i]);
            }
        }
Exemple #2
0
        public void Run()
        {
            var input  = AuxiliarMethods.ReadFiles("Kangaroo", true);
            var output = AuxiliarMethods.ReadFiles("Kangaroo", false);

            for (int i = 0; i < input.Count; i++)
            {
                string[] split = input[i].Split(" ");
                int      x1    = Convert.ToInt32(split[0]);
                int      v1    = Convert.ToInt32(split[1]);
                int      x2    = Convert.ToInt32(split[2]);
                int      v2    = Convert.ToInt32(split[3]);
                AuxiliarMethods.Assert("Kangaroo", i, kangaroo(x1, v1, x2, v2), output[i]);
            }
        }