public void ComparableTest() { var starting = new StringIntKey("foo", 123); var greaterThan = new StringIntKey("foo", 153); var lessThan = new StringIntKey("bar", 123); (starting <= greaterThan).Must().BeTrue().OrThrow(); (starting >= lessThan).Must().BeTrue().OrThrow(); }
public void EqualityTest() { var starting = new StringIntKey("foo", 153); var alike = new StringIntKey("foo", 153); var unalike = new StringIntKey("bar", 123); starting.Must().Equal(alike); starting.Must().Not.Equal(unalike); }