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

            loginInfo.Store();
            LoginInfo.Delete();
            Assert.IsFalse(LoginInfo.Exists());
        }
示例#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);
        }