public void TestDoesNotExistsAfterDelete() { var loginInfo = new LoginInfo { Username = "******", Password = "******" }; loginInfo.Store(); LoginInfo.Delete(); Assert.IsFalse(LoginInfo.Exists()); }
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); }