Matchers.Function<...> is not very clear at all! Maybe something along the lines of: Matchers.IfActualFalse(actual=>actual=="foo").Expect("foo").AllowNull(false).Build(); Can then add additional constraints in