public void StartLoginTest() { //Arrange ulong playerID = 8763; //Act login.StartLogin(playerID); mock.OnLoginAck += Raise.Event <Action <ulong> >(playerID); //Assert mock.Received(1).Send(playerID); Assert.AreEqual(playerID, player.PlayerID); }