Skip to content

Commit

Permalink
Update verify files
Browse files Browse the repository at this point in the history
  • Loading branch information
rstm-sf committed Apr 22, 2024
1 parent 016d268 commit d4135d7
Show file tree
Hide file tree
Showing 17 changed files with 5,353 additions and 122 deletions.
18 changes: 16 additions & 2 deletions OfficeIMO.VerifyTests/VerifyTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,32 @@ private static void NormalizeDocument(Document? document) {
i++;
}

i = 1;
foreach (var nsid in document.Descendants<Nsid>()) {
nsid.Val = i.ToString("X8");
i++;
}

if (document.MainDocumentPart!.GetPartsOfType<WordprocessingCommentsPart>().Any()) {
foreach (var comment in document.MainDocumentPart.WordprocessingCommentsPart!.RootElement!.Descendants<Comment>()) {
comment.Date = DateTime.MaxValue;
}
}

if (document.MainDocumentPart!.GetPartsOfType<NumberingDefinitionsPart>().Any()) {
i = 1;
foreach (var nsid in document.MainDocumentPart.NumberingDefinitionsPart!.RootElement!.Descendants<Nsid>()) {
nsid.Val = i.ToString("X8");
i++;
}
}
}

private static void NormalizeCustomFilePropertiesPart(CustomFilePropertiesPart? part) {
var fileTime = part?.Properties
.FirstOrDefault(x => ((CustomDocumentProperty?)x)?.VTFileTime != null);
if (fileTime != null) {
((CustomDocumentProperty?) fileTime)!.VTFileTime!.Text = LastTime;
if (fileTime is CustomDocumentProperty property) {
property.VTFileTime!.Text = LastTime;
}
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit d4135d7

Please sign in to comment.