public void Match_FailsWhenValueIsNotDateTime()
        {
            DateTimeHttpRouteConstraint constraint = new DateTimeHttpRouteConstraint();
            bool match = TestValue(constraint, 1);

            Assert.False(match);
        }
        public void Match_SucceedsWhenValueIsTimeString()
        {
            DateTimeHttpRouteConstraint constraint = new DateTimeHttpRouteConstraint();
            bool match = TestValue(constraint, "2:30:00 PM");

            Assert.True(match);
        }
        public void Match_SucceedsWhenValueIsDateTime()
        {
            DateTimeHttpRouteConstraint constraint = new DateTimeHttpRouteConstraint();
            bool match = TestValue(constraint, DateTime.Now);

            Assert.True(match);
        }
 public void Match_FailsWhenValueIsNotDateTime()
 {
     DateTimeHttpRouteConstraint constraint = new DateTimeHttpRouteConstraint();
     bool match = TestValue(constraint, 1);
     Assert.False(match);
 }
 public void Match_SucceedsWhenValueIsTimeString()
 {
     DateTimeHttpRouteConstraint constraint = new DateTimeHttpRouteConstraint();
     bool match = TestValue(constraint, "2:30:00 PM");
     Assert.True(match);
 }
 public void Match_SucceedsWhenValueIsDateTime()
 {
     DateTimeHttpRouteConstraint constraint = new DateTimeHttpRouteConstraint();
     bool match = TestValue(constraint, DateTime.Now);
     Assert.True(match);
 }