Beispiel #1
0
 public void Which_are_in_Test2()
 {
     string[] a1 = new string[] { "cod", "code", "wars", "ewar", "pillow", "bed", "phht" };
     string[] a2 = new string[] { "lively", "alive", "harp", "sharp", "armstrong", "codewars" };
     string[] r  = new string[] { "cod", "code", "ewar", "wars" };
     Assert.AreEqual(r, WhichAreIn.inArray(a1, a2));
 }
Beispiel #2
0
 public void Which_are_in_Test3()
 {
     string[] a1 = new string[] { "cod", "code", "wars", "ewar", "ar" };
     string[] a2 = new string[] {  };
     string[] r  = new string[] {  };
     Assert.AreEqual(r, WhichAreIn.inArray(a1, a2));
 }
Beispiel #3
0
 public void Which_are_in_Test1()
 {
     string[] a1 = new string[] { "arp", "live", "strong" };
     string[] a2 = new string[] { "lively", "alive", "harp", "sharp", "armstrong" };
     string[] r  = new string[] { "arp", "live", "strong" };
     Assert.AreEqual(r, WhichAreIn.inArray(a1, a2));
 }