public void OnParseDateTimeValue() { // arrange var vm = new DateTimeFieldViewModel(); var evnt = new ParseDateTimeEventArgs(null, null, DateTime.Now, new DateTime(1752, 1, 1), true); // act vm.OnParseDateTimeValue(null, evnt); // assert Assert.IsFalse(evnt.IsParsingSuccessful); }
private void dateTimePicker_ParseDateTimeValue(object sender, ParseDateTimeEventArgs args) { this.LogEvent("ParseDateTimeValue", args.IsParsingSuccessful ? "Successfull" : "Unsuccessfull"); }