htmlformmatertest.cs

来自「工作流的基本资料(文档资料」· CS 代码 · 共 41 行

CS
41
字号
using System;
using System.Collections;
using NetBpm.Workflow.Delegation;
using NetBpm.Workflow.Delegation.Impl.Htmlformatter;
using NUnit.Framework;

namespace NetBpm.Test.Workflow.Delegation
{
	/// <summary>
	/// Zusammenfassung f黵 HtmlFormmaterTest.
	/// </summary>
	[TestFixture]
	public class HtmlFormmaterTest
	{
		public HtmlFormmaterTest()
		{
		}

		[Test]
		public void TestDateInput()
		{
			try
			{
				IHtmlFormatter dateInput = new DateInput();
				IDictionary configuration = new Hashtable();
				configuration.Add("dateFormat","dd/MM/yyyy");
				dateInput.SetConfiguration(configuration);
				DateTime date = (DateTime)dateInput.ParseHttpParameter("11/11/2004",null);
				Assert.IsNotNull(date);
				Assert.IsTrue(date.Year==2004);
				Assert.IsTrue(date.Month==11);
				Assert.IsTrue(date.Day==11);
			}
			catch (Exception ex)
			{
				Assert.Fail(ex.Message);
			}
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?