コード例 #1
0
        public void FromUserInput_WithStorePasswordEncrypted_EncryptsPassword()
        {
            var credentials = PackageSourceCredential.FromUserInput("source", "user", "password", storePasswordInClearText: false);

            Assert.NotEqual("password", credentials.PasswordText);
            Assert.Equal("password", credentials.Password);
        }
コード例 #2
0
 public void FromUserInput_WithStorePasswordEncrypted_Throws()
 {
     Assert.Throws <NuGetConfigurationException>(() => PackageSourceCredential.FromUserInput("source", "user", "password", storePasswordInClearText: false));
 }