public void AssignVirtualPathToPrivateField_WhenClassIsConstructed()
        {
            string virtualPath      = "~/page.aspx";
            var    resourceProvider = new LocalResourceProvider2(virtualPath);

            var fieldInfo  = resourceProvider.GetType().GetField("virtualPath", BindingFlags.Instance | BindingFlags.NonPublic);
            var fieldValue = fieldInfo.GetValue(resourceProvider);

            Assert.AreEqual(virtualPath, fieldValue.ToString());
        }
        public void AssignResolverFieldToDefaultResolver_WhenConstructorWithoutResolverHasBeenCalled()
        {
            string virtualPath      = "~/page.aspx";
            var    resourceProvider = new LocalResourceProvider2(virtualPath);

            var fieldInfo  = resourceProvider.GetType().GetField("resourceFileResolver", BindingFlags.Instance | BindingFlags.NonPublic);
            var fieldValue = fieldInfo.GetValue(resourceProvider);

            Assert.IsNotNull(fieldValue);
            Assert.IsInstanceOfType(fieldValue, typeof(ResourceFileResolver));
        }