SenseNet.ContentRepository.Tests.TrashTest.CheckSimpleNode C# (CSharp) Метод

CheckSimpleNode() приватный статический Метод

private static CheckSimpleNode ( string encodedPath ) : void
encodedPath string
Результат void
        private static void CheckSimpleNode(string encodedPath)
        {
            var node = LoadNode(encodedPath);
            var content = Content.Create(node);

            Assert.IsTrue(node.ContentListId == 0, "ContentListId is not 0");
            Assert.IsNull(node.ContentListType, "ContentListType is not null");
            Assert.IsFalse(content.Fields.ContainsKey("#ContentList1Field1"), "This content shouldn't contain #ContentList1Field1 field.");
            Assert.IsFalse(content.Fields.ContainsKey("#ContentList1Field2"), "This content shouldn't contain #ContentList1Field2 field.");
            Assert.IsFalse(content.Fields.ContainsKey("#ContentList1Field3"), "This content shouldn't contain #ContentList1Field3 field.");
            Assert.IsFalse(content.Fields.ContainsKey("#ContentList2Field1"), "This content shouldn't contain #ContentList2Field1 field.");
            Assert.IsFalse(content.Fields.ContainsKey("#ContentList2Field2"), "This content shouldn't contain #ContentList2Field2 field.");
        }
        
TrashTest