Exemple #1
0
        public void TestDoesNotExistsAfterDelete()
        {
            var loginInfo = new LoginInfo {
                Username = "******", Password = "******"
            };

            loginInfo.Store();
            LoginInfo.Delete();
            Assert.IsFalse(LoginInfo.Exists());
        }
Exemple #2
0
        public override int Run(string[] remainingArguments)
        {
            if (LoginInfo.Exists())
            {
                Console.WriteLine("Stored login credentials have been removed.");
                LoginInfo.Delete();
            }
            else
            {
                Console.WriteLine("No login info stored. Nothing to do.");
            }

            return(0);
        }