Example #1
0
 public void StrayNumber_Stray_SimpleArray3()
 {
     Assert.AreEqual(-6, StrayNumber.Stray(new int[] { -21, -21, -21, -21, -6, -21, -21 }));
 }
Example #2
0
 public void StrayNumber_Stray_MiddleItem()
 {
     Assert.AreEqual(7, StrayNumber.Stray(new int[] { 0, 0, 0, 7, 0, 0, 0 }));
 }
Example #3
0
 public void StrayNumber_Stray_LastItem()
 {
     Assert.AreEqual(0, StrayNumber.Stray(new int[] { 1, 1, 1, 1, 1, 1, 0 }));
 }
Example #4
0
 public void StrayNumber_Stray_FirstItem()
 {
     Assert.AreEqual(8, StrayNumber.Stray(new int[] { 8, 1, 1, 1, 1, 1, 1 }));
 }
Example #5
0
 public void StrayNumber_Stray_SimpleArray2()
 {
     Assert.AreEqual(3, StrayNumber.Stray(new int[] { 17, 17, 3, 17, 17, 17, 17 }));
 }
Example #6
0
 public void StrayNumber_Stray_SimpleArray1()
 {
     Assert.AreEqual(2, StrayNumber.Stray(new int[] { 1, 1, 2 }));
 }