I\'m using Moq & NUnit as a unit test framework.
I\'ve written a method that is given a NetworkStream object as a parameter:
public static void R
Put the NetworkStream behind a simple interface (with only the calls you need) and mock that.