public void Wrapper_InvokesMethodIfCorrectInitialized() { bool wasInvoked = false; wrapper.Init(m => wasInvoked = true); wrapper.Invoke("abc"); Assert.IsTrue(wasInvoked); }
public bool Filter(SocketMessage m) => false; // TODO public void Init(params object[] @params) { SocketMessage msg = (SocketMessage)@params[0]; User = msg.Author as SocketGuildUser; Channel = msg.Channel; Msg = msg; _msg.Init(Msg); // temporary until auto-initializers are in _channel.Init(Channel); // temporary until auto-initializers are in }