public void ToStringShouldEndWithCarrageReturnNewLine() { var request = new WebSocketRequest("localhost:80", "path"); Assert.IsTrue(request.ToString().EndsWith("\r\n")); }
public void ToStringShouldStartWithGetPathAndHttpHeader() { var request = new WebSocketRequest("localhost:80", "path"); Assert.IsTrue(request.ToString().StartsWith("GET path HTTP/1.1\r\n")); }