public void Configure_ConfigureCalled_SitecoreQueryConfigurationReturned()
        {
            //Assign
            SitecoreQueryAttribute attr = new SitecoreQueryAttribute(string.Empty);
            var propertyInfo = typeof(StubClass).GetProperty("QueryContextProperty");


            //Act
            var result = attr.Configure(propertyInfo) as SitecoreQueryConfiguration;

            //Assert
            Assert.IsNotNull(result);
        }
        public void Configure_ConfigureQueryContext_QueryContextSetOnConfigObject(
            [Values(true, false)] bool queryContextValue,
            [Values(true, false)] bool expectedValue)
        {
            //Assign
            SitecoreQueryAttribute attr = new SitecoreQueryAttribute(string.Empty);
            var propertyInfo = typeof (StubClass).GetProperty("QueryContextProperty");
            
            attr.UseQueryContext = queryContextValue;
            
            //Act
            var result = attr.Configure(propertyInfo) as SitecoreQueryConfiguration;

            //Assert
            Assert.AreEqual(expectedValue, result.UseQueryContext);
        }