document_history.cs
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· CS 代码 · 共 39 行
CS
39 行
using NUnit.Framework;using System;using System.IO;namespace MonoTests.KnowledgeTree{ [TestFixture] public class DocumentHistoryTest : 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); } [TearDown] public void TearDown() { this._doc1.deleteFile(); } [Test] public void ChangeTypeTest() { kt_document_version_history_response version_resp = this._kt.get_document_version_history(this._session, this._doc1.docId); Assert.AreEqual(0, version_resp.status_code); kt_document_transaction_history_response history_resp = this._kt.get_document_transaction_history(this._session, this._doc1.docId); Assert.AreEqual(0, history_resp.status_code); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?