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