public void AccessRightsConstructorTest() { // Should simply create an object // ReSharper disable UnusedVariable AccessRights target = new AccessRights(); // ReSharper restore UnusedVariable }
/// <summary> /// Setup the handles in the array for quick access. /// </summary> static CommandHandler() { handlers[0] = new Version(); handlers[1] = new EventAdd(); handlers[2] = new EventCancel(); handlers[4] = new Write(); handlers[6] = new Search(); handlers[11] = new ProtoError(); handlers[12] = new ClearChannel(); handlers[13] = new Beacon(); handlers[15] = new ReadNotify(); handlers[18] = new CreateChannel(); handlers[19] = new WriteNotify(); handlers[20] = new ClientName(); handlers[21] = new HostName(); handlers[22] = new AccessRights(); handlers[23] = new Echo(); }
public void AccessRightsDoResponse() { AccessRights target = new AccessRights(); target.DoResponse( DataPacket.Create(16), null, packet => { throw new Exception("Call the sendMessage!"); }); }