コード例 #1
0
                public void StoreTheName()
                {
                    var command = (RepromptForSurname)MagicYearCalculator.ProcessCommand(new PromptForSurname(name), invalidSurname);

                    Assert.Equal(name, command.name);
                }
コード例 #2
0
                public void PromptForAnnualSalary()
                {
                    var command = MagicYearCalculator.ProcessCommand(new PromptForSurname(), validSurname);

                    Assert.IsType <PromptForAnnualSalary>(command);
                }
コード例 #3
0
                public void RepromptForSurname()
                {
                    var command = MagicYearCalculator.ProcessCommand(new PromptForSurname(), invalidSurname);

                    Assert.IsType <RepromptForSurname>(command);
                }
コード例 #4
0
                public void PromptForSurname()
                {
                    var command = MagicYearCalculator.ProcessCommand(new RepromptForName(), validName);

                    Assert.IsType <PromptForSurname>(command);
                }
コード例 #5
0
                public void StoreTheName()
                {
                    var command = (PromptForSurname)MagicYearCalculator.ProcessCommand(new ShowWelcomeMessageAndPromptForName(), validName);

                    Assert.Equal(validName, command.name);
                }
コード例 #6
0
                public void StoreTheSurname()
                {
                    var command = (PromptForAnnualSalary)MagicYearCalculator.ProcessCommand(new PromptForSurname(), validSurname);

                    Assert.Equal(validSurname, command.surname);
                }
コード例 #7
0
                public void RepromptForName()
                {
                    var command = MagicYearCalculator.ProcessCommand(new ShowWelcomeMessageAndPromptForName(), invalidName);

                    Assert.IsType <RepromptForName>(command);
                }