Пример #1
0
 public void DeleteEverySecond_inputNULL()
 {
     // Arrange
     // var input = null;
     // Act.
     ArrayManipulating.DoTaskTest(null);
     // Assert
     // var expected = 0;
 }
Пример #2
0
        public void DeleteEverySecond_inputTwoDigit()
        {
            // Arrange
            var input = "1, 2.5";
            // Act.
            var actual = ArrayManipulating.DoTaskTest(input);
            // Assert
            var expected = new[] { "1" };

            Assert.AreEqual(true, CompareTwoStringArrays(actual, expected));
        }
Пример #3
0
        public void DeleteEverySecond_inputDifferentTypes()
        {
            // Arrange
            var input = "1, abc, 4.5, 12, f";
            // Act.
            var actual = ArrayManipulating.DoTaskTest(input);
            // Assert
            var expected = new[] { "1", "4.5", "f" };

            Assert.AreEqual(true, CompareTwoStringArrays(actual, expected));
        }