You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Mock XmlReader/StringReader and XslCompiledTransform[.Load] #11
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.
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:
Activity