public bool Matches(StringToken token) { return(_token.Equals(token)); }
void ShouldNotEqual(string expected, StringToken actual) { Assert.False(actual.Equals(expected)); Assert.NotEqual(expected, actual.ToString()); }
void ShouldEqual(StringToken expected, StringToken actual) { Assert.True(actual.Equals(expected)); }
void ShouldEqual(string expected, StringToken actual) { Assert.True(actual.Equals(expected)); Assert.Equal(expected, actual.ToString()); }
void ShouldNotEqual(StringToken expected, StringToken actual) { Assert.False(actual.Equals(expected)); }
/// <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);