I have an XmlTextReader, and I pass it in a System.Net.ConnectStream. If I enter the debugger, I can see that ConnectStream does not support the Length property and this throws a NotSupportedException.
Now, I subclass Stream and pass in an instance of my class. My class also throws NotSupportedException on the get() accessor of Length, but this time all my unit tests fail with a NotSupportedException.
The XmlTextReader documentation does not say it requires a Stream supporting Length, and it clearly can use one that doesn't - what is going on?
(This is .NET 3.5 Client)