public void FromUserInput_WithStorePasswordEncrypted_EncryptsPassword() { var credentials = PackageSourceCredential.FromUserInput("source", "user", "password", storePasswordInClearText: false); Assert.NotEqual("password", credentials.PasswordText); Assert.Equal("password", credentials.Password); }
public void FromUserInput_WithStorePasswordEncrypted_Throws() { Assert.Throws <NuGetConfigurationException>(() => PackageSourceCredential.FromUserInput("source", "user", "password", storePasswordInClearText: false)); }