public void TestConstructor() { foreach (var opCode in new [] { NWWebSocketOpCode.Binary, NWWebSocketOpCode.Close, NWWebSocketOpCode.Cont, NWWebSocketOpCode.Invalid, NWWebSocketOpCode.Ping, NWWebSocketOpCode.Pong, NWWebSocketOpCode.Text }) { Assert.DoesNotThrow(() => { var newMetadata = new NWWebSocketMetadata(opCode); newMetadata.Dispose(); }); } }
public void TearDown() { metadata.Dispose(); }