wrongdefinitiontest.cs

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

CS
38
字号
using System;
using System.IO;
using NetBpm.Workflow.Definition;
using NUnit.Framework;

namespace NetBpm.Test.Workflow.Example
{
	[TestFixture]
	public class WrongDefinitionTest : AbstractTest
	{

		protected String GetParArchiv()
		{
			return "pme.par";
		}

		[Test]
		public void DeployProcess()
		{
			try
			{
				testUtil = new TestUtil();
				testUtil.LoginUser("ae");

				// deploy Archiv
				FileInfo parFile = new FileInfo(TestHelper.GetExampleDir()+GetParArchiv());
				FileStream fstream = parFile.OpenRead();
				byte[] b = new byte[parFile.Length];
				fstream.Read(b, 0, (int) parFile.Length);
				definitionComponent.DeployProcessArchive(b);
				Assert.Fail("where is my Exception!");
			} catch (NpdlException npdeEx)
			{
				
			}
		}
	}
}

⌨️ 快捷键说明

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