⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 document_type.cs.svn-base

📁 PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。
💻 SVN-BASE
字号:
using NUnit.Framework;using System;using System.IO;namespace MonoTests.KnowledgeTree{	[TestFixture]	public class DocumentOwnerTest : KTTest    	{ 		private int 			_folderId;		private Document		_doc1;		[SetUp]		public void SetUp()		{			this._folderId = 1;			this._doc1 = new Document(1, this._session, this._kt, this._verbose,false);			this._doc1.createFile(this._folderId);			this._verbose = true;		}		[TearDown]		public void TearDown()		{			this._doc1.deleteFile();		}		[Test]		public void ChangeTypeTest()		{			// NOTE: Create the following type 'NewType' via the admin pages			kt_document_detail response = this._kt.change_document_type(this._session, this._doc1.docId, "NewType");			Assert.AreEqual(0, response.status_code);			if (0 != response.status_code)			{				System.Console.WriteLine("Please check that the document type 'NewType' exists in the database! This test should pass if it exists!");				System.Console.WriteLine("SQL: insert into document_types_lookup(name) values('NewType');");			}			// NOTE: we need to test with an unknown type as well			response = this._kt.change_document_type(this._session, this._doc1.docId, "UnknownType");			Assert.IsTrue(0 != response.status_code);	    	}	}}

⌨️ 快捷键说明

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