📄 htmlformmatertest.cs
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -