Skip to content

Commit 02568d2

Browse files
authored
Remove internal namespace (#346)
1 parent 4eb17fc commit 02568d2

File tree

125 files changed

+142
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+142
-138
lines changed

DocumentFormat.OpenXml.Tests/OpenXmlDomTest/OpenXmlReaderWriterTest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,18 +418,19 @@ private void WriteStartE(OpenXmlWriter writer, object writeSource, IEnumerable<O
418418

419419
private void TestWriteStartElement(ConstrWriter writerConstr, WriteStartEle write, object writeSource, IEnumerable<OpenXmlAttribute> attributes, IEnumerable<KeyValuePair<string, string>> namespaceDeclarations)
420420
{
421-
string file = Path.Combine(TestUtil.TestResultsDirectory, Guid.NewGuid().ToString().Replace("-", "") + ".docx");
422-
using (WordprocessingDocument newDoc = WordprocessingDocument.Create(file, WordprocessingDocumentType.Document))
421+
using (var ms = new MemoryStream())
422+
using (WordprocessingDocument newDoc = WordprocessingDocument.Create(ms, WordprocessingDocumentType.Document))
423423
{
424424
MainDocumentPart part = newDoc.AddMainDocumentPart();
425+
425426
using (Stream stream = part.GetStream())
426427
using (OpenXmlWriter writer = OpenXmlWriter.Create(stream))
427428
{
428429
write(writer, writeSource, attributes, namespaceDeclarations);
429430
}
431+
430432
VerifyStartElement(part, writeSource, attributes, namespaceDeclarations);
431433
}
432-
File.Delete(file);
433434
}
434435

435436
private IEnumerable<OpenXmlAttribute> GetTestAttributes()

DocumentFormat.OpenXml.Tests/ofapiTest/AllParticleValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using DocumentFormat.OpenXml.ExtendedProperties;
5-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
65
using DocumentFormat.OpenXml.Validation;
6+
using DocumentFormat.OpenXml.Validation.Schema;
77
using DocumentFormat.OpenXml.Vml.Office;
88
using Xunit;
99

DocumentFormat.OpenXml.Tests/ofapiTest/AnyParticleValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
54
using DocumentFormat.OpenXml.Validation;
5+
using DocumentFormat.OpenXml.Validation.Schema;
66
using DocumentFormat.OpenXml.Vml;
77
using Xunit;
88

DocumentFormat.OpenXml.Tests/ofapiTest/ChoiceParticleValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
54
using DocumentFormat.OpenXml.Presentation;
65
using DocumentFormat.OpenXml.Spreadsheet;
76
using DocumentFormat.OpenXml.Validation;
7+
using DocumentFormat.OpenXml.Validation.Schema;
88
using DocumentFormat.OpenXml.Wordprocessing;
99
using Xunit;
1010

DocumentFormat.OpenXml.Tests/ofapiTest/CompositeParticleValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
54
using DocumentFormat.OpenXml.Validation;
5+
using DocumentFormat.OpenXml.Validation.Schema;
66
using DocumentFormat.OpenXml.Wordprocessing;
77
using Xunit;
88

DocumentFormat.OpenXml.Tests/ofapiTest/GroupParticleValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
54
using DocumentFormat.OpenXml.Validation;
5+
using DocumentFormat.OpenXml.Validation.Schema;
66
using DocumentFormat.OpenXml.Wordprocessing;
77
using Xunit;
88

DocumentFormat.OpenXml.Tests/ofapiTest/McValidationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
54
using DocumentFormat.OpenXml.Validation;
5+
using DocumentFormat.OpenXml.Validation.Schema;
66
using DocumentFormat.OpenXml.Wordprocessing;
77
using System.Linq;
88
using Xunit;

DocumentFormat.OpenXml.Tests/ofapiTest/SchemaValidatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
54
using DocumentFormat.OpenXml.Validation;
5+
using DocumentFormat.OpenXml.Validation.Schema;
66
using DocumentFormat.OpenXml.Wordprocessing;
77
using Xunit;
88

DocumentFormat.OpenXml.Tests/ofapiTest/SdbSchemaDatasTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

44
using DocumentFormat.OpenXml.Bibliography;
5-
using DocumentFormat.OpenXml.Internal.SchemaValidation;
5+
using DocumentFormat.OpenXml.Validation.Schema;
6+
using DocumentFormat.OpenXml.Validation.Schema.Restrictions;
67
using DocumentFormat.OpenXml.Wordprocessing;
78
using Xunit;
89

DocumentFormat.OpenXml.Tests/ofapiTest/SemanticConstraintTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Copyright (c) Microsoft. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using DocumentFormat.OpenXml.Internal.SemanticValidation;
54
using DocumentFormat.OpenXml.Validation;
5+
using DocumentFormat.OpenXml.Validation.Semantic;
66
using Xunit;
77

88
using Excel = DocumentFormat.OpenXml.Spreadsheet;

0 commit comments

Comments
 (0)