public void WhenValidDate_ThenValid() { var filter = new TestFileDateModifiedFilter("1/1/2017", FilterOperator.Equal); Assert.AreEqual(new DateTime(2017, 1, 1), filter.ModifiedTimes[0]); Assert.AreEqual(FilterOperator.Equal, filter.FilterOperator); }
public void WhenMultipleDates_ThenValid() { var filter = new TestFileDateModifiedFilter("1/1/2017", "10/11/2016"); Assert.AreEqual(new DateTime(2017, 1, 1), filter.ModifiedTimes[0]); Assert.AreEqual(new DateTime(2016, 10, 11), filter.ModifiedTimes[1]); Assert.AreEqual(FilterOperator.In, filter.FilterOperator); }