public void Directions_Reduction_Test2()
        {
            string[] a = new string[] { "NORTH", "WEST", "SOUTH", "EAST" };
            string[] b = new string[] { "NORTH", "WEST", "SOUTH", "EAST" };

            CollectionAssert.AreEqual(b, DirReduction.dirReduc(a));
        }
Exemplo n.º 2
0
        public static void ReduceToOeste()
        {
            string[] input = { "NORTE", "SUR", "SUR", "ESTE", "OESTE", "NORTE", "OESTE" };

            string[] output = { "OESTE" };

            Assert.AreEqual(DirReduction.DirReduc(input), output);
        }
Exemplo n.º 3
0
 public void Test1()
 {
     string[] a = new string[] { "NORTH", "SOUTH", "SOUTH", "EAST", "WEST", "NORTH", "WEST" };
     string[] b = new string[] { "WEST" };
     Assert.AreEqual(b, DirReduction.dirReduc(a));
 }
Exemplo n.º 4
0
 public void Test9()
 {
     string[] a = new string[] { "WEST", "WEST" };
     string[] b = new string[] { "WEST", "WEST" };
     Assert.AreEqual(b, DirReduction.dirReduc(a));
 }
Exemplo n.º 5
0
 public void Test7()
 {
     string[] a = new string[] { "SOUTH", "NORTH" };
     string[] b = new string[] { };
     Assert.AreEqual(b, DirReduction.dirReduc(a));
 }
Exemplo n.º 6
0
        public static void NotReduce()
        {
            string[] input = { "NORTE", "OESTE", "SUR", "ESTE" };

            Assert.AreEqual(DirReduction.DirReduc(input), input);
        }
 public void TestEmptyArray()
 {
     string[] empty = Array.Empty <string>();
     Assert.IsTrue(DirReduction.dirReduc(empty).Length == 0);
 }
 public void TestNull()
 {
     Assert.IsNotNull(DirReduction.dirReduc(null));
 }