Exemplo n.º 1
0
        public void CreateProvider_Success()
        {
            var       factory  = new FileSystemProviderFactory();
            IProvider provider = factory.CreateProvider(_hostInteraction);

            Assert.AreSame(_hostInteraction.WorkingDirectory, provider.HostInteraction.WorkingDirectory);
            Assert.AreSame(_hostInteraction.CacheDirectory, provider.HostInteraction.CacheDirectory);
            Assert.IsFalse(string.IsNullOrEmpty(provider.Id));
        }
Exemplo n.º 2
0
 public void CreateProvider_NullParameter()
 {
     var       factory  = new FileSystemProviderFactory();
     IProvider provider = factory.CreateProvider(null);
 }