Ejemplo n.º 1
0
 public void TestMethod8()
 {
     //Arrange
     object[] arr      = new object[] { "abc", 123 };
     int[]    expected = new int[] { 123 };
     //Act
     int[] actual = Challenge93.FilterArray(arr);
     //Assert
     CollectionAssert.AreEqual(actual, expected);
 }
Ejemplo n.º 2
0
 public void TestMethod7()
 {
     //Arrange
     object[] arr      = new object[] { 4, "z", "f", 5 };
     int[]    expected = new int[] { 4, 5 };
     //Act
     int[] actual = Challenge93.FilterArray(arr);
     //Assert
     CollectionAssert.AreEqual(actual, expected);
 }
Ejemplo n.º 3
0
 public void TestMethod6()
 {
     //Arrange
     object[] arr      = new object[] { "a", "e", "i", "o", "u" };
     int[]    expected = new int[] {  };
     //Act
     int[] actual = Challenge93.FilterArray(arr);
     //Assert
     CollectionAssert.AreEqual(actual, expected);
 }
Ejemplo n.º 4
0
 public void TestMethod5()
 {
     //Arrange
     object[] arr      = new object[] { "r", 5, "y", "e", 8, 9 };
     int[]    expected = new int[] { 5, 8, 9 };
     //Act
     int[] actual = Challenge93.FilterArray(arr);
     //Assert
     CollectionAssert.AreEqual(actual, expected);
 }
Ejemplo n.º 5
0
 public void TestMethod10()
 {
     //Arrange
     object[] arr      = new object[] { "w", "r", "u", 43, "s", "a", 76, "d", 88 };
     int[]    expected = new int[] { 43, 76, 88 };
     //Act
     int[] actual = Challenge93.FilterArray(arr);
     //Assert
     CollectionAssert.AreEqual(actual, expected);
 }
Ejemplo n.º 6
0
 public void TestMethod9()
 {
     //Arrange
     object[] arr      = new object[] { "$%^", 567, "&&&" };
     int[]    expected = new int[] { 567 };
     //Act
     int[] actual = Challenge93.FilterArray(arr);
     //Assert
     CollectionAssert.AreEqual(actual, expected);
 }