Пример #1
0
        public void ContentFile_AboutHabitat_NoRenderings()
        {
            // Arrange
            using (var db = Dbs.ContentFile())
            {
                // Act
                var page = db.GetItem(Ids.AboutHabitat);

                // Assert
                Assert.IsTrue(string.IsNullOrEmpty(page[Sitecore.FieldIDs.LayoutField]));
            }
        }
Пример #2
0
        public void ContentFile_AboutHabitat_NotNull()
        {
            // Arrange
            using (var db = Dbs.ContentFile())
            {
                // Act
                var page = db.GetItem(Ids.AboutHabitat);

                // Assert
                Assert.IsNotNull(page);
            }
        }