public void SetUp() { _registrar = MockRepository.GenerateStub<IRegistrar>(); _builder = ((registry, info) => ctx => ctx.PropertyValue); _matches = (info => info.Name == "SomeProperty"); _property = typeof(PropertyHolder).GetProperty("SomeProperty"); _registrar.Stub(r => r.Register(Arg<ConverterFamily>.Matches(f=>f.Matches(_property)))); _expression = new ConverterExpression(_matches, _registrar.Register); }