public void ReturnsTrueAreEquals() { var result = TokenComparator.Equals(new IdentifierToken("position"), new IdentifierToken("position")); result.Should().BeTrue(); }
public void ReturnsTrueWhenBothHasNullValues() { var result = TokenComparator.Equals(new IdentifierToken(null), new IdentifierToken(null)); result.Should().BeTrue(); }
public void ReturnsFalseWhenHasDifferentValue() { var result = TokenComparator.Equals(new KeyWordToken("Key"), new KeyWordToken("Word")); result.Should().BeFalse(); }
public void ReturnsFalseWhenHasDifferentTypes() { var result = TokenComparator.Equals(new KeyWordToken("Key"), new SemiColonToken()); result.Should().BeFalse(); }
public void ReturnsFalseWhenOneIsNullAndNotOther() { var result = TokenComparator.Equals(new KeyWordToken(""), null); result.Should().BeFalse(); }
public void ReturnsTrueWhenBothNull() { var result = TokenComparator.Equals(null, null); result.Should().BeTrue(); }