public void SutDoesNotEqualOtherObjectWhenLocalPartsDiffer()
 {
     // Fixture setup
     var sut = new EmailAddressLocalPart(Guid.NewGuid().ToString());
     object other = new EmailAddressLocalPart(Guid.NewGuid().ToString());
     // Exercise system
     bool result = sut.Equals(other);
     // Verify outcome
     Assert.False(result);
     // Teardown
 }
 public void SutDoesNotEqualAnonymousObject()
 {
     // Fixture setup
     var sut = new EmailAddressLocalPart(Guid.NewGuid().ToString());
     var anonymousObject = new object();
     // Exercise system
     bool result = sut.Equals(anonymousObject);
     // Verify outcome
     Assert.False(result);
     // Teardown
 }
        public void SutEqualsOtherSutWhenLocalPartsAreEqual()
        {
            // Fixture setup
            var localPart = Guid.NewGuid().ToString();

            var sut = new EmailAddressLocalPart(localPart);
            var other = new EmailAddressLocalPart(localPart);
            // Exercise system
            bool result = sut.Equals(other);
            // Verify outcome
            Assert.True(result);
            // Teardown
        }