Mock XmlReader/StringReader and XslCompiledTransform[.Load] #751
Labels
area: core
Issues that address the core abstractions & the wrappers
state: won't do
Issues that won't be addressed. Reasons differ and will be provided as comments.
type: enhancement
Issues that propose new functionality
Is your feature request related to a problem? Please describe.
I want to mock XSL transformation, implemented via
XslCompiledTransform
.So there are two use cases:
Describe the solution you'd like
Let me mock
XslCompiledTransform
and read the file mock as usual...Describe alternatives you've considered
The XML can quite easily be read from a stream, however, this needs a mock of
XmlReader
, which we cannot do with this lib here.Also loading the XSL from a string requires this or at least both need
StringReader
and a way more complicated implementation.All in all the above code can be re-written as such to make it work with the mock, however, this is really complicated/complicates the code just for macking it testable - in contrast to the short and understandable code snippet shown above:
Additional context
I am open to any other way for other implementations/changes in how I can mock the XML/XSL transformation/reading properly.
The text was updated successfully, but these errors were encountered: