include UnitTest include LeapYear namespace TEST OurFirstTest const bo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include "UnitTest++.h"
#include "LeapYear.h"
namespace
{
TEST(OurFirstTest)
{
const bool Result = IsLeapYear(1972);
CHECK_EQUAL(true, Result);
}
TEST(OurSecondTest)
{
const bool Result = IsLeapYear(1973);
CHECK_EQUAL(false, Result);
}
}