Пример #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[] { }));
 }