public void SocketIOPacketParsing2() { var p = SIO_Packet.Decode(@"2"); Assert.AreEqual(p.Type, SIO_Packet.PacketType.EVENT); Assert.AreEqual(p.Namespace, "/"); Assert.AreEqual(p.ID, null); }
public void SocketIOPacketParsing1() { var p = SIO_Packet.Decode(@"2/test,[0,1,2]"); Assert.AreEqual(p.Type, SIO_Packet.PacketType.EVENT); Assert.AreEqual(p.Namespace, "/test"); Assert.AreEqual(p.ID, null); }