public void FilterReplyMessage_IncorrectAllow() { var incorrectAllow = new PERMISSION { Allow = 12321, MessageId = 22 }; AdvAssert.ThrowsArgumentOutOfRange(() => stub.FilterReplyMessage(IntPtr.Zero, ref incorrectAllow, 0), "lpReplyBuffer", null); }