Beispiel #1
0
 public void Constructor(TheoryDataItem data)
 {
     Assert.Equal(data.ExpectedCYYMMDD, data.Actual.CYYMMDD);
     Assert.Equal(data.ExpectedDay, data.Actual.Day);
     Assert.Equal(data.ExpectedMonth, data.Actual.Month);
     Assert.Equal(data.ExpectedYear, data.Actual.Year);
 }
Beispiel #2
0
 public IntCYYMMDDTheoryDataItem(int expectedCYYMMDD, DateTime expectedDate, int?testCyymmdd = null, DateTime?testDate = null)
 {
     Expected = new TheoryDataItem(expectedCYYMMDD, expectedDate);
     Test     = new TheoryDataItem(testCyymmdd ?? expectedCYYMMDD, testDate ?? expectedDate);
 }