Beispiel #1
0
        public void Can_Deep_Clone_Content_Type_Sort()
        {
            var contentType = new ContentTypeSort(new Lazy <int>(() => 3), 4, "test");
            var clone       = (ContentTypeSort)contentType.DeepClone();

            Assert.AreNotSame(clone, contentType);
            Assert.AreEqual(clone, contentType);
            Assert.AreEqual(clone.Id.Value, contentType.Id.Value);
            Assert.AreEqual(clone.SortOrder, contentType.SortOrder);
            Assert.AreEqual(clone.Alias, contentType.Alias);
        }
        public void Can_Deep_Clone_Content_Type_Sort()
        {
            ContentTypeSort contentType = BuildContentTypeSort();
            var             clone       = (ContentTypeSort)contentType.DeepClone();

            Assert.AreNotSame(clone, contentType);
            Assert.AreEqual(clone, contentType);
            Assert.AreEqual(clone.Id.Value, contentType.Id.Value);
            Assert.AreEqual(clone.SortOrder, contentType.SortOrder);
            Assert.AreEqual(clone.Alias, contentType.Alias);
        }