コード例 #1
0
        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);
        }
コード例 #2
0
		private void dateTimePicker_ParseDateTimeValue(object sender, ParseDateTimeEventArgs args)
		{
			this.LogEvent("ParseDateTimeValue", args.IsParsingSuccessful ? "Successfull" : "Unsuccessfull");
		}