public static void PacketBlockFlags_Inbound_Test() { PacketBlockFlags packetFlagInbound = new PacketBlockFlags(511); Assert.IsTrue(packetFlagInbound.Inbound); PacketBlockFlags packetFlagNoInbound = new PacketBlockFlags(512); Assert.IsFalse(packetFlagNoInbound.Inbound); }
public static void PacketBlockFlags_Broadcast_Test() { PacketBlockFlags packetFlagBroadcast = new PacketBlockFlags(255); Assert.IsTrue(packetFlagBroadcast.Broadcast); PacketBlockFlags packetFlagNoBroadcast = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoBroadcast.Broadcast); }
public static void PacketBlockFlags_Multicast_Test() { PacketBlockFlags packetFlagMulticast = new PacketBlockFlags(255); Assert.IsTrue(packetFlagMulticast.Multicast); PacketBlockFlags packetFlagNoMulticast = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoMulticast.Multicast); }
public static void PacketBlockFlags_Promisious_Test() { PacketBlockFlags packetFlagPromisious = new PacketBlockFlags(255); Assert.IsTrue(packetFlagPromisious.Promiscuous); PacketBlockFlags packetFlagNoPromisious = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoPromisious.Promiscuous); }
public static void PacketBlockFlags_FCSLength_Test() { PacketBlockFlags packetFlagFCSLength = new PacketBlockFlags(480); Assert.IsTrue(packetFlagFCSLength.FCSLength); PacketBlockFlags packetFlagNoFCSLength = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoFCSLength.FCSLength); }
public static void PacketBlockFlags_Outbound_Test() { PacketBlockFlags packetFlagOutbound = new PacketBlockFlags(254); Assert.IsTrue(packetFlagOutbound.Outbound); PacketBlockFlags packetFlagNoOutbound = new PacketBlockFlags(253); Assert.IsFalse(packetFlagNoOutbound.Outbound); }
public static void PacketBlockFlags_UnalignedFrameError_Test() { PacketBlockFlags packetUnalignedFrameError = new PacketBlockFlags(0xFF000000); Assert.IsTrue(packetUnalignedFrameError.UnalignedFrameError); PacketBlockFlags packetFlagNoError = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoError.UnalignedFrameError); }
public static void PacketBlockFlags_SymbolError_Test() { PacketBlockFlags packetSymbolError = new PacketBlockFlags(0xFF000000); Assert.IsTrue(packetSymbolError.SymbolError); PacketBlockFlags packetFlagNoError = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoError.SymbolError); }
public static void PacketBlockFlags_PreambleError_Test() { PacketBlockFlags packetPreambleError = new PacketBlockFlags(0xFF000000); Assert.IsTrue(packetPreambleError.PreambleError); PacketBlockFlags packetFlagNoError = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoError.PreambleError); }
public static void PacketBlockFlags_tartFrameDelimiterError_Test() { PacketBlockFlags packetStartFrameDelimiterError = new PacketBlockFlags(0xFF000000); Assert.IsTrue(packetStartFrameDelimiterError.StartFrameDelimiterError); PacketBlockFlags packetFlagNoError = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoError.StartFrameDelimiterError); }
public static void PacketBlockFlags_WrongInterFrameGapError_Test() { PacketBlockFlags packetWrongInterFrameGapError = new PacketBlockFlags(0xFF000000); Assert.IsTrue(packetWrongInterFrameGapError.WrongInterFrameGapError); PacketBlockFlags packetFlagNoError = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoError.WrongInterFrameGapError); }
public override bool Equals(Object obj) { if (obj == null || GetType() != obj.GetType()) { return(false); } PacketBlockFlags p = (PacketBlockFlags)obj; return(this.Flag == p.Flag); }
public static void PacketBlockFlags_PacketTooLongError_Test() { PacketBlockFlags packetTooLongError = new PacketBlockFlags(0xFF000000); Assert.IsTrue(packetTooLongError.PacketTooLongError); PacketBlockFlags packetFlagNoError = new PacketBlockFlags(128); Assert.IsFalse(packetFlagNoError.PacketTooLongError); }
public EnchantedPacketOption(string Comment = null, PacketBlockFlags PacketFlag = null, long? DropCount = null, HashBlock Hash = null) { this.Comment = Comment; this.PacketFlag = PacketFlag; this.DropCount = DropCount; this.Hash = Hash; }
public PacketOption(string Comment = null, PacketBlockFlags PacketFlag = null, HashBlock Hash = null) { this.Comment = Comment; this.PacketFlag = PacketFlag; this.Hash = Hash; }