Esempio n. 1
0
 public bool Matches(StringToken token)
 {
     return(_token.Equals(token));
 }
Esempio n. 2
0
 void ShouldNotEqual(string expected, StringToken actual)
 {
     Assert.False(actual.Equals(expected));
     Assert.NotEqual(expected, actual.ToString());
 }
Esempio n. 3
0
 void ShouldEqual(StringToken expected, StringToken actual)
 {
     Assert.True(actual.Equals(expected));
 }
Esempio n. 4
0
 void ShouldEqual(string expected, StringToken actual)
 {
     Assert.True(actual.Equals(expected));
     Assert.Equal(expected, actual.ToString());
 }
Esempio n. 5
0
 void ShouldNotEqual(StringToken expected, StringToken actual)
 {
     Assert.False(actual.Equals(expected));
 }
Esempio n. 6
0
 /// <summary>
 /// Compares the <c>PropertyNameToken</c> to another <c>PropertyNameToken</c>.
 /// </summary>
 /// <param name="other">another name</param>
 /// <returns>true if the names are equal</returns>
 public bool Equals(PropertyNameToken other) => _stringToken.Equals(other._stringToken);