Execute() public method

public Execute ( Glass.Mapper.Pipelines.ConfigurationResolver.ConfigurationResolverArgs args ) : void
args Glass.Mapper.Pipelines.ConfigurationResolver.ConfigurationResolverArgs
return void
        public void Execute_RequestedTypeItem_ConfigForItem()
        {
            //Arrange
            SitecoreTypeConfiguration expected = SitecoreItemResolverTask.Config;
            var task = new SitecoreItemResolverTask();
            var args = new ConfigurationResolverArgs(null, null, typeof(Item), null);

            //Act
            task.Execute(args);

            //Arrange
            Assert.AreEqual(expected, args.Result);
        }
        public void Execute_ResultIsNotNull_DoesNothing()
        {
            //Arrange
            var expected = new SitecoreTypeConfiguration();
            var task = new SitecoreItemResolverTask();
            var args = new ConfigurationResolverArgs(null, null, null, null);
            args.Result = expected;

            //Act
            task.Execute(args);

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