Inheritance: AbstractObjectConstructionTask
        public void Execute_ResultNotSitecoreItemConfig_NoValueSet()
        {
            //Arrange
            var task = new SitecoreItemTask();
            var context = new SitecoreTypeCreationContext();

            var args = new ObjectConstructionArgs(null, context, new SitecoreTypeConfiguration(), null);
        
            //Act
            task.Execute(args);

            //Assert
            Assert.IsNull(args.Result);
        }
        public void Execute_ItemConfig_ItemSet()
        {
            //Arrange
            var task = new SitecoreItemTask();
            var context = new SitecoreTypeCreationContext();
            context.Item = Mapper.Sc.Utilities.CreateFakeItem(new Dictionary<Guid, string>(), "test");
            var args = new ObjectConstructionArgs(null, context, SitecoreItemResolverTask.Config, null);
            
            //Act
            task.Execute(args);

            //Assert
            Assert.AreEqual(context.Item, args.Result);
        }
        public void Execute_ResultNotNull_NoChangeToResult()
        {
            //Arrange
            var task = new SitecoreItemTask();
            var context = new SitecoreTypeCreationContext();

            var args = new ObjectConstructionArgs(null, context, new SitecoreTypeConfiguration(), null);
            var expected = "some value";
            args.Result = expected;

            //Act
            task.Execute(args);

            //Assert
            Assert.AreEqual(expected, args.Result);
        }