public uint Execute(PacketDistributed ipacket)
        {
            GC_ADDITIONINFO_UPDATE packet = (GC_ADDITIONINFO_UPDATE)ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            AdditionData.UpdateAdditionData(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
 public void AddTheory(AdditionData point)
 {
     Assume.That((long)point.First + (long)point.Second < (long)int.MaxValue);
     Assert.That(point.First + point.Second, Is.EqualTo(new BadMaths().BadAdd(point.First, point.Second)));
 }
Пример #3
0
 public void AddTheory(AdditionData point)
 {
     Assume.That((long)point.First + (long)point.Second < (long)int.MaxValue);
     Assert.That(point.First + point.Second, Is.EqualTo(new ComplexCalcultor().Add(point.First, point.Second)));
 }