public void TypedMessageFilter_Includes_Proper_Types_With_Inheritance() { TypedMessageFilter tmf = new TypedMessageFilter(true, typeof(int), typeof(string), typeof(C1)); Assert.IsTrue(tmf.Include(new PublishRequest(null, null, 1))); Assert.IsTrue(tmf.Include(new PublishRequest(null, null, "test"))); Assert.IsFalse(tmf.Include(new PublishRequest(null, null, 1M))); Assert.IsTrue(tmf.Include(new PublishRequest(null, null, new C1()))); Assert.IsTrue(tmf.Include(new PublishRequest(null, null, new C1IsMyBase()))); }