Пример #1
0
 public bool Matches(StringToken token)
 {
     return(_token.Equals(token));
 }
Пример #2
0
 void ShouldNotEqual(string expected, StringToken actual)
 {
     Assert.False(actual.Equals(expected));
     Assert.NotEqual(expected, actual.ToString());
 }
Пример #3
0
 void ShouldEqual(StringToken expected, StringToken actual)
 {
     Assert.True(actual.Equals(expected));
 }
Пример #4
0
 void ShouldEqual(string expected, StringToken actual)
 {
     Assert.True(actual.Equals(expected));
     Assert.Equal(expected, actual.ToString());
 }
Пример #5
0
 void ShouldNotEqual(StringToken expected, StringToken actual)
 {
     Assert.False(actual.Equals(expected));
 }
Пример #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);