예제 #1
0
 public void ReturnsMiddleElementAsStrayNumber()
 {
     Assert.AreEqual(3, StrayNumbers.Stray(new int[] { 17, 17, 17, 3, 17, 17, 17 }));
 }
예제 #2
0
 public void ReturnsLastElementAsStrayNumber()
 {
     Assert.AreEqual(2, StrayNumbers.Stray(new int[] { 10, 10, 10, 10, 2 }));
 }
예제 #3
0
 public void SimpleInputArrayReturnsExpectedOutput()
 {
     Assert.AreEqual(2, StrayNumbers.Stray(new int[] { 1, 1, 2 }));
 }
예제 #4
0
 public void ReturnsFirstElementAsStrayNumber()
 {
     Assert.AreEqual(9, StrayNumbers.Stray(new int[] { 9, 99, 99, 99, 99 }));
 }
예제 #5
0
 public void CheckIfAInputReturnsTheExpectedOutput()
 {
     Assert.AreEqual(0, StrayNumbers.Stray(new int[] { }));
 }