public void ReturnANewInstanceOfLocalResourceProvider2_WhenCreateLocalResourceProviderIsCalledWithVirtualPathArgument()
        {
            var factory = new ExtendedResourceProviderFactory2();
            var provider = factory.CreateLocalResourceProvider("~/path");

            Assert.IsNotNull(provider);
            Assert.IsInstanceOfType(provider, typeof(LocalResourceProvider2));
        }
 public void ThrowAnException_WhenCreateLocalResourceProviderIsCalledWithEmptyArgument()
 {
     var factory = new ExtendedResourceProviderFactory2();
     try
     {
         factory.CreateLocalResourceProvider(null);
         Assert.Fail("ArgumentNullException was not thrown.");
     }
     catch (ArgumentNullException ex)
     {
         Assert.AreEqual("virtualPath", ex.ParamName);
     }
 }