1 Comment

  • This case is a perfect place to employ MbUnit's RowTest feature:



    [RowTest()]

    [Row(1001, 2, 3)]

    [Row(1, 1002, 3)]

    [Row(1, 2, 1003)]

    void Sum_NumberBiggerThan1000IsNotSummed(int x, int y, int z)

    {

    int sumResult = Sum(x, y, z);

    Assert.AreEqual(o, sumResult);



    }



    In a test framework that doesn't have a similar capability, I'd probably resort to three separate tests.

Comments have been disabled for this content.