Beispiel #1
0
        public void Clone_ReturnsSameContent()
        {
            var r = new Role("dev", "developer", "def");
            var c = new Contribution("name", r);

            c.Date     = DateTime.Now;
            c.Comments = "stupid note";
            Assert.IsTrue(c.AreContentsEqual(c.Clone() as Contribution));
        }
Beispiel #2
0
        public void Clone_ReturnsDifferentNonNullObject()
        {
            var r     = new Role("dev", "developer", "def");
            var c     = new Contribution("name", r);
            var clone = c.Clone();

            Assert.IsNotNull(clone);
            Assert.AreNotSame(c, clone);
        }