You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-06 02:11:06 +09:00
25 lines
737 B
C#
25 lines
737 B
C#
using System;
|
|
|
|
using Lidgren.Network;
|
|
|
|
namespace UnitTests
|
|
{
|
|
public static class MiscTests
|
|
{
|
|
public static void Run(NetPeer peer)
|
|
{
|
|
NetPeerConfiguration config = new NetPeerConfiguration("Test");
|
|
|
|
config.EnableMessageType(NetIncomingMessageType.UnconnectedData);
|
|
if (config.IsMessageTypeEnabled(NetIncomingMessageType.UnconnectedData) == false)
|
|
throw new NetException("setting enabled message types failed");
|
|
|
|
config.SetMessageTypeEnabled(NetIncomingMessageType.UnconnectedData, false);
|
|
if (config.IsMessageTypeEnabled(NetIncomingMessageType.UnconnectedData) == true)
|
|
throw new NetException("setting enabled message types failed");
|
|
|
|
Console.WriteLine("Misc tests OK");
|
|
}
|
|
}
|
|
}
|