public void CompareTo_ObjectTestStruct_0() { object other = TestStruct; var exp = 0; var act = TestStruct.CompareTo(other); Assert.AreEqual(exp, act); }
public void CanCompareTypedValueToAnotherInstance() { var lhs = new EmailAddress("*****@*****.**"); var rhs = new EmailAddress("*****@*****.**"); Assert.Equal(0, lhs.CompareTo(rhs)); }
public void CanCompareTypedValueToRawValue() { var email = new EmailAddress("*****@*****.**"); Assert.Equal(0, email.CompareTo("*****@*****.**")); }
public int CompareTo(Invite other) { return(EmailAddress.CompareTo(other.EmailAddress)); }