C# Class NFluent.CharCheckExtensions

Provides check methods to be executed on a char value.
Exibir arquivo Open project: tpierrain/NFluent

Public Methods

Method Description
IsADigit ( this check ) : ICheckLink>

Checks that the checked char is a decimal digit.

IsALetter ( this check ) : ICheckLink>

Checks that the checked char is a letter.

IsAPunctuationMark ( this check ) : ICheckLink>

Checks that the checked char is a punctuation mark.

IsSameLetterAs ( this check, char otherChar ) : ICheckLink>

Checks that the checked char and the given one are the same letter, whatever the case.

IsSameLetterButWithDifferentCaseAs ( this check, char otherChar ) : ICheckLink>

Checks that the checked char is the same letter as the other, but with different case only.

Private Methods

Method Description
HaveSameCase ( char checkedChar, char otherChar ) : bool
IsALetter ( char checkedChar ) : bool
IsSameCharCaseInsensitive ( char checkedChar, char otherChar ) : bool

Method Details

IsADigit() public static method

Checks that the checked char is a decimal digit.
The checked is not a decimal digit.
public static IsADigit ( this check ) : ICheckLink>
check this The chained fluent check.
return ICheckLink>

IsALetter() public static method

Checks that the checked char is a letter.
The checked is not a letter.
public static IsALetter ( this check ) : ICheckLink>
check this The chained fluent check.
return ICheckLink>

IsAPunctuationMark() public static method

Checks that the checked char is a punctuation mark.
The checked is not a punctuation mark.
public static IsAPunctuationMark ( this check ) : ICheckLink>
check this The chained fluent check.
return ICheckLink>

IsSameLetterAs() public static method

Checks that the checked char and the given one are the same letter, whatever the case.
The checked is not the same letter as the expected one, whatever the case.
public static IsSameLetterAs ( this check, char otherChar ) : ICheckLink>
check this The chained fluent check.
otherChar char The other char that.
return ICheckLink>

IsSameLetterButWithDifferentCaseAs() public static method

Checks that the checked char is the same letter as the other, but with different case only.
The checked is not the same as the expected one, or is the same but with the same case.
public static IsSameLetterButWithDifferentCaseAs ( this check, char otherChar ) : ICheckLink>
check this The chained fluent check.
otherChar char The other char that.
return ICheckLink>