示例#1
0
        public void CompareTo_ObjectTestStruct_0()
        {
            object other = TestStruct;

            var exp = 0;
            var act = TestStruct.CompareTo(other);

            Assert.AreEqual(exp, act);
        }
示例#2
0
            public void CanCompareTypedValueToAnotherInstance()
            {
                var lhs = new EmailAddress("*****@*****.**");
                var rhs = new EmailAddress("*****@*****.**");

                Assert.Equal(0, lhs.CompareTo(rhs));
            }
示例#3
0
            public void CanCompareTypedValueToRawValue()
            {
                var email = new EmailAddress("*****@*****.**");

                Assert.Equal(0, email.CompareTo("*****@*****.**"));
            }
示例#4
0
 public int CompareTo(Invite other)
 {
     return(EmailAddress.CompareTo(other.EmailAddress));
 }