コード例 #1
0
    public void Equals_Start2_Multipliedby3_And3()
    {
        var scoring = new MultipliedScore(3);

        int currentScore = 2;
        var newScore     = scoring.ScorePiece(currentScore);

        newScore = scoring.ScorePiece(newScore);
        Assert.AreEqual(18, newScore);
    }
コード例 #2
0
    public void Equals_Start0_Multipliedby2()
    {
        var scoring = new MultipliedScore(2);

        int currentScore = 0;

        Assert.AreEqual(0, scoring.ScorePiece(currentScore));
    }
コード例 #3
0
    public void Equals_Start7_Multipliedby3()
    {
        var scoring = new MultipliedScore(3);

        int currentScore = 7;

        Assert.AreEqual(21, scoring.ScorePiece(currentScore));
    }