public void GetZipInstance() { //arrange IZipFactory zipFactory = new ZipFactory(new ZipSettings { Password = string.Empty }); //act ICompressor instance = zipFactory.Get(); //assert Assert.AreEqual(typeof(Zip), instance.GetType()); }
public void GetZipPasswordProtectedInstance() { //arrange IZipFactory zipFactory = new ZipFactory(new ZipSettings { Password = "******" }); //act ICompressor instance = zipFactory.Get(); //assert Assert.AreEqual(typeof(PasswordProtectedZip), instance.GetType()); }