c# - Compare generated xps document against a nominal xps, ignoring random resource GUID's -
in wpf application i'm generating xps report based on flowdocument.
i've tested viewmodel part of generation unit tests, i'd add acceptance test (using specflow, http://www.specflow.org/) compares newly created report against nominal report in order avoid unwanted changes in future.
unfortunately, unzipped content of generated xps differs in guid's of embedded resources (e.g font) each time report re-generated. guess comparing fixed pages in /documents/1/pages enough, nevertheless fonts referenced guid in there.
is there way how can compare xps files ignoring guid part? can give me hint right direction?
Comments
Post a Comment