// eventTest.cc   P. Conrad for CISC220, 06J
// Test-Driven-Development for the Event_C class


#include <iostream>
using std::cout;
using std::cerr;
using std::endl;

#include "runTests.h"

#include "event.h"
#include "date.h"

int main(void)
{

  RunTests_C test;

  Date_C myBirthday(1964,7,2);
  
  test.assertEquals(myBirthday.getYear(),1964);
  test.assertEquals(myBirthday.getMonth(),7);
  test.assertEquals(myBirthday.getDay(),2);

  Event_C myBirth(myBirthday,"USA","CA","Los Angeles");

  test.assertEquals(myBirth.getDate().getYear(),1964);
  test.assertEquals(myBirth.getDate().getMonth(),7);
  test.assertEquals(myBirth.getDate().getDay(),2);
  test.assertEquals(myBirth.getCountry(),"USA");
  test.assertEquals(myBirth.getState(),"CA");
  test.assertEquals(myBirth.getCity(),"Los Angeles");

  test.print(cerr);
  test.finish();
}





