public void Remove_PassedString_ReturnsDelimiters()
        {
            string input   = "(test)[1234]{testagain!}";
            string correct = "()[]{}";

            Assert.AreEqual(correct, RemoveChars.Remove(input));
        }
        public void Remove_PassedEmptyString_ReturnsEmptyString()
        {
            string input   = "";
            string correct = "";

            Assert.AreEqual(correct, RemoveChars.Remove(input));
        }
Пример #3
0
 /// <summary>
 /// Extends RemoveChars action with the ability to change starting point.
 /// N.B.: RemoveChars().From(The.Beginning) is equivalent of the default RemoveChars()
 /// </summary>
 /// <param name="position">
 /// Position in source string to start from. Beginning or End values could be used
 /// </param>
 /// <exception cref="ArgumentOutOfRangeException">Thrown when StartOf or EndOf position value is used</exception>
 public static RemoveCharsFrom From(this RemoveChars source, The position)
 {
     return(new RemoveCharsFrom(source, position));
 }