Ejemplo n.º 1
0
    //[TestCase(999, 2, 1a, false)]
    public void CheckValidDate(int year, int month, int day, bool expected)
    {
        CheckDateMethod test = new CheckDateMethod();

        Assert.AreEqual(expected, test.IsValidDate(year, month, day));
    }
Ejemplo n.º 2
0
    public void CheckDayInMonth(int year, int month, int expected)
    {
        CheckDateMethod test = new CheckDateMethod();

        Assert.AreEqual(expected, actual: test.DaysInMonth(year, month));
    }