Exemplo n.º 1
0
        public void CloneShouldNotJustCopyReference()
        {
            AmexAccount subject = CreateSubject();

            Engine.BankAccount.Account clone = subject.Clone("CloneAmex");

            Assert.IsFalse(ReferenceEquals(subject, clone));
        }
Exemplo n.º 2
0
        public void CloneShouldGiveUseNameGiven()
        {
            AmexAccount subject = CreateSubject();

            Engine.BankAccount.Account clone = subject.Clone("CloneAmex");

            Assert.AreEqual("CloneAmex", clone.Name);
            Assert.AreNotEqual("CloneAmex", subject.Name);
        }