示例#1
0
 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();
         });
     }
 }
示例#2
0
 public void TearDown()
 {
     metadata.Dispose();
 }