Replace use of NUnit deprecated method Assert.IsInstanceOfType with the replacement Assert.IsInstanceOf
Explicitly specify IPAddress.Any param in TcpListener constructor, rather than using ambiguous constructor with just port number.
Mark fields readonly whenever possible, per ReSharper's suggestion.
Remove some unused variables and params.
Close TestRig before closing HttpListener, otherwise the outstanding call to BeginGetContext will fail with ObjectDisposedException