public void SimilarOjectsAreConsideredEqual()
 {
     Assert.True(EmailAndSms.IsSameAs(SimilarEmailAndSms));
     Assert.True(Email.IsSameAs(SimilarEmail));
     Assert.True(Sms.IsSameAs(SimilarSms));
     Assert.True(PersonalId.IsSameAs(SimilarPersonalId));
     Assert.True(CustomIdentifier.IsSameAs(SimilarCustomIdentifier));
 }
Пример #2
0
            public void Initializes_with_properties()
            {
                //Arrange
                var personalIdentificationNumber = new PersonalIdentificationNumber("01013300001");

                //Act
                var signer = new SignerStub(personalIdentificationNumber);

                //Assert
                Assert.True(personalIdentificationNumber.IsSameAs(signer.Identifier), $"Actual {nameof(PersonalIdentificationNumber)}  was not same as initialized value.");
            }