IncrementWrongs() public method

public IncrementWrongs ( ) : void
return void
コード例 #1
0
ファイル: CountsTester.cs プロジェクト: adymitruk/storyteller
        public void increment_wrongs()
        {
            var counts = new Counts();
            counts.IncrementWrongs();
            counts.Wrongs.ShouldEqual(1);

            counts.IncrementWrongs();
            counts.Wrongs.ShouldEqual(2);

            counts.IncrementWrongs();
            counts.Wrongs.ShouldEqual(3);
        }
コード例 #2
0
ファイル: TestContext.cs プロジェクト: larsw/storyteller
 public void IncrementWrongs()
 {
     Counts.IncrementWrongs();
 }
コード例 #3
0
        public void SetUp()
        {
            test = new Test("some test",
                            x => { section = x.Section("Math").WithStep("Add").WithStep("Subtract").WithStep("Minus"); });

            counts = new Counts();
            progression = new TestProgression(test, counts);

            progression.Start(section);
            progression.Start(section.Parts[0]);

            counts.IncrementRights();
            progression.IncrementProgress(section.Parts[0]);
            counts.IncrementWrongs();

            status = progression.BuildStatus();
        }