-
Notifications
You must be signed in to change notification settings - Fork 585
Expand file tree
/
Copy pathCommentExPeopleTest.cs
More file actions
56 lines (50 loc) · 1.69 KB
/
CommentExPeopleTest.cs
File metadata and controls
56 lines (50 loc) · 1.69 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using DocumentFormat.OpenXml.Tests.CommentExPeopleClass;
using System.IO;
using Xunit;
namespace DocumentFormat.OpenXml.Tests.CommentExPeople
{
/// <summary>
/// Test for Comment People part.
/// </summary>
public class CommentExPeopleTest : OpenXmlTestBase
{
/// <summary>
/// Constructor
/// </summary>
public CommentExPeopleTest(ITestOutputHelper output)
: base(output)
{
}
/// <summary>
/// Element reading test for "Comment PeoplePart".
/// </summary>
[Fact]
public void CommentExPeople01ReadElement()
{
using (var stream = new MemoryStream())
{
GeneratedDocument generatedDocument = new GeneratedDocument();
generatedDocument.CreatePackage(stream);
TestEntities testEntities = new TestEntities();
testEntities.ReadElements(stream, Log);
}
}
/// <summary>
/// Element editing test for "Comment PeoplePart".
/// </summary>
[Fact]
public void CommentExPeople02EditElement()
{
using (var stream = new MemoryStream())
{
GeneratedDocument generatedDocument = new GeneratedDocument();
generatedDocument.CreatePackage(stream);
TestEntities testEntities = new TestEntities();
testEntities.EditElements(stream, Log);
testEntities.VerifyElements(stream, Log);
}
}
}
}