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] #751
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
fgreinacher commentedon Aug 26, 2021
Thanks for your contribution!
As mentioned e.g. in #748 (comment) I want to keep this library focused on
System.IO.However I guess this could be something for https://github.com/System-IO-Abstractions/System.IO.Abstractions.Extensions which is currently being set up. What do you think @gigi81?
fgreinacher commentedon Oct 29, 2021
Closing this. As mentioned above please consider suggesting it to the extensions.
rklec commentedon Nov 22, 2021
Okay, suggested there in TestableIO/System.IO.Abstractions.Extensions#11