public void PacketReceive_TileLiquidPacket_EventCanceled() { var packet = new TileLiquid { X = 100, Y = 256, Amount = 255, Type = LiquidType.Honey }; var sender = Mock.Of <IPlayer>(); PacketReceive_EventCanceled <TileLiquid, TileLiquidEvent>(packet, sender); }
public void PacketReceive_TileLiquidPacket_EventTriggered() { var packet = new TileLiquid { X = 100, Y = 256, Amount = 255, Type = LiquidType.Honey }; var sender = Mock.Of <IPlayer>(); PacketReceive_EventTriggered <TileLiquid, TileLiquidEvent>(packet, sender, evt => evt.Player == sender && evt.X == 100 && evt.Y == 256 && evt.Liquid == new Liquid(LiquidType.Honey, 255)); }