document_history.cs
891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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);
}
}
}