コード例 #1
0
        public void ShouldAddVersion()
        {
            // arrange
            using (var db = new Db {
                new DbItem("home")
            })
            {
                var item = db.GetItem("/sitecore/content/home");

                // act
                var result = ItemManager.AddVersion(item, SecurityCheck);

                // assert
                result.Versions.Count.Should().Be(2);
            }
        }