SenseNet.ContentRepository.Tests.NewVersioningTest.GenericContent_KeepTextPropertyAfterUndocheckout C# (CSharp) Метод

GenericContent_KeepTextPropertyAfterUndocheckout() приватный Метод

private GenericContent_KeepTextPropertyAfterUndocheckout ( ) : void
Результат void
        public void GenericContent_KeepTextPropertyAfterUndocheckout()
        {
            Page samplePage = new Page(TestRoot);

            samplePage.Name = "SamplePage";

            //set sample page
            string textProperty = "minta property";
            samplePage.Keywords = textProperty;

            samplePage.Save();
            samplePage.CheckOut();
            samplePage.UndoCheckOut();

            //asserts
            Assert.AreEqual(textProperty, samplePage.Keywords, "Keywords property doesn't contain the expected strings.");

        }