public void ChecIfTextMatch() { var choice = new Choice(new Range('a', 'z')); Assert.True(choice.Match("b").Success()); }
public void LookIfTextMatchWithGivenRangeUsingAnEmptyString() { var choice = new Choice(new Range('e', 'z')); Assert.False(choice.Match("").Success()); }
public void ChecIfCharsFromATextAreInRange() { var choice = new Choice(new Range('c', 'z')); Assert.True(choice.Match("def").Success()); }
public void LookIfTextMatchWithGivenRangeUsingAStringWhoIsNotInRange() { var choice = new Choice(new Range('e', 'z')); Assert.False(choice.Match("1ef").Success()); }
public void ChecIfCharIsInRange() { var choice = new Choice(new Range('c', 'z')); Assert.False(choice.Match("b").Success()); }