public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccountType("Bob", "xxx") .VerifyStandardErrorMatches(IsATaxabilityTypeKey.InvalidTaxabilityType); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ChangeAccountName("Alpha", "Beta", "ok") .VerifyStandardErrorMatches(ChangeAccountName.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ListAccounts() .VerifyStandardErrorMatches(RequireActiveAccountsExist.NoActiveAccountsMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccountType("Bob", TaxabilityType.Taxable.Key, "a") .VerifyStandardErrorMatches(AddAccountType.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ListAccountTypes("a") .VerifyStandardErrorMatches(RequireExactlyNArgs.WrongNumberOfArgumentsMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ChangeAccountTypeName("Bob", "Foo") .VerifyStandardErrorMatches(IsTheNameOfAnExistingAccountType.NameDoesNotExistMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ShowAccountType(Init.GetDefaultAccountTypes().First().Name, "Checking") .VerifyStandardErrorMatches(ShowAccountType.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ShowAccountType() .VerifyStandardErrorMatches(ShowAccountType.IncorrectParametersMessageText); }
protected override void Before_first_test() { Subcutaneous.FromCommandline() .Init(@"x:\previous.statement") .ClearOutput() .Init(FilePath); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .DeleteAccount("Alpha") .VerifyStandardErrorMatches(IsTheNameOfAnExistingAccount.NameDoesNotExistMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ChangeName("Foo") .VerifyStandardErrorMatches(RequireSelectedAccount.AccountNeedsToBeSelected); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ChangeAccountTypeTaxabilityType(Init.GetDefaultAccountTypes().First().Name, "z") .VerifyStandardErrorMatches(IsATaxabilityTypeKey.InvalidTaxabilityType); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .DeleteAccount("Alpha", "a") .VerifyStandardErrorMatches(DeleteAccount.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ChangeAccountTypeTaxabilityType("0", TaxabilityType.Taxable.Key) .VerifyStandardErrorMatches(IsTheIndexOfAnExistingAccountType.IndexDoesNotExistMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .ChangeAccountTypeTaxabilityType(Init.GetDefaultAccountTypes().First().Name, TaxabilityType.Taxable.Key, "a") .VerifyStandardErrorMatches(ChangeAccountTypeTaxabilityType.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddTaxReportingCategory() .VerifyStandardErrorMatches(AddTaxReportingCategory.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name) .ChangeAccountType("Alpha", "0") .VerifyStandardErrorMatches(IsTheIndexOfAnExistingAccountType.IndexDoesNotExistMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccount("Alhpa", Init.GetDefaultAccountTypes().First().Name) .DeleteAccount("Alhpa") .ListAccounts() .VerifyStandardErrorMatches(RequireActiveAccountsExist.NoActiveAccountsMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name) .SelectAccount("Alpha") .ChangeName() .VerifyStandardErrorMatches(ChangeName.IncorrectParametersMessageText); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccountType("Bob", TaxabilityType.Taxable.Key) .AddAccountType("Bob", TaxabilityType.Taxfree.Key) .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText) .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingAccountType).GetSingularUIDescription()); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddTaxReportingCategory("Bob") .AddTaxReportingCategory("Bob") .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText) .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingTaxReportingCategory).GetSingularUIDescription()); }
public void Should_return_the_correct_error_message() { Subcutaneous.FromCommandline() .Init("x:") .AddAccount("Alpha", Init.GetDefaultAccountTypes().First().Name) .AddAccount("Beta", Init.GetDefaultAccountTypes().First().Name) .ChangeAccountName("Alpha", "Beta") .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText) .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingAccount).GetSingularUIDescription()); }
public void Should_return_the_correct_error_message() { var defaultAccountTypes = Init.GetDefaultAccountTypes().ToList(); Subcutaneous.FromCommandline() .Init("x:") .ChangeAccountTypeName(defaultAccountTypes.First().Name, defaultAccountTypes.Last().Name) .VerifyStandardErrorMatches(MatchesNoneOf.ErrorMessageText) .VerifyStandardErrorMatches(typeof(IsTheNameOfAnExistingAccountType).GetSingularUIDescription()); }
protected override void Before_first_test() { var executionArguments = Subcutaneous.FromCommandline() .Init("x:") .ClearOutput() .CreateExecutionArguments(); var command = IoC.Get <ListTaxReportingCategories>(); _result = command.Execute(executionArguments); }
protected override void Before_first_test() { var accountType = Init.GetDefaultAccountTypes().First(); Subcutaneous.FromCommandline() .Init("x:") .AddAccount("Alpha", accountType.Name) .AddAccount("Beta", accountType.Name) .AddAccount("Gamma", accountType.Name) .DeleteAccount("2"); }
protected override void Before_first_test() { _executionArguments = Subcutaneous.FromCommandline() .Init(@"x:\previous.statement") .ClearOutput() .CreateExecutionArguments(ExpectedAccountName, _expectedTaxabilityType.Key); var command = IoC.Get <AddAccountType>(); _result = command.Execute(_executionArguments); }
protected override void Before_first_test() { var executionArguments = Subcutaneous.FromCommandline() .Init("x:") .ClearOutput() .CreateExecutionArguments(Init.GetDefaultAccountTypes().First().Name); var command = IoC.Get <ShowAccountType>(); _result = command.Execute(executionArguments); }
public void Should_return_the_correct_error_message() { var subcutaneous = Subcutaneous.FromCommandline() .Init("x:"); Statement statement = Statement; statement.AccountTypes.Clear(); IoC.Get <IStorageService>().Save(statement); subcutaneous.ListAccountTypes() .VerifyStandardErrorMatches(RequireAccountTypesExist.NoAccountTypesMessageText); }
protected override void Before_first_test() { var executionArguments = Subcutaneous.FromCommandline() .Init(@"x:\current.statement") .ClearOutput() .CreateExecutionArguments(); var command = IoC.Get <ShowSettings>(); _result = command.Execute(executionArguments); }
protected override void Before_first_test() { var executionArguments = Subcutaneous.FromCommandline() .Init(@"x:\current.statement") .AddAccount(AccountName, Init.GetDefaultAccountTypes().First().Name) .ClearOutput() .CreateExecutionArguments(); var command = IoC.Get <ListAccounts>(); _result = command.Execute(executionArguments); }