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)); }
public void CreateProvider_NullParameter() { var factory = new FileSystemProviderFactory(); IProvider provider = factory.CreateProvider(null); }