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)); }
public static void ReduceToOeste() { string[] input = { "NORTE", "SUR", "SUR", "ESTE", "OESTE", "NORTE", "OESTE" }; string[] output = { "OESTE" }; Assert.AreEqual(DirReduction.DirReduc(input), output); }
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)); }
public void Test9() { string[] a = new string[] { "WEST", "WEST" }; string[] b = new string[] { "WEST", "WEST" }; Assert.AreEqual(b, DirReduction.dirReduc(a)); }
public void Test7() { string[] a = new string[] { "SOUTH", "NORTH" }; string[] b = new string[] { }; Assert.AreEqual(b, DirReduction.dirReduc(a)); }
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)); }