Exemplo n.º 1
0
        public void getcharpos_search_D_from_mid_returns_3()
        {
            // Arrange
            var array      = new char[] { 'A', 'B', 'C', 'D' };
            var charToFind = 'D';
            var startIndex = 1;

            // Act
            var result = Evaluate.GetCharPos(array, charToFind, startIndex);

            // Assert
            Assert.AreEqual(3, result);
        }