public void SpecifyRequirements() { Mock<ITypeMemberConventionRequirements> reqMock = new Mock<ITypeMemberConventionRequirements>(); var target = new RandomInt32Convention(); target.SpecifyRequirements(reqMock.Object); reqMock.Verify(a => a.Type(x => x == typeof(int)), @" The SpecifyRequirements call produced a requirement that doesn't make sense for this convention. "); }