public void Convert_ReturnsConversion() { var spec = new IntegerGreaterThanZero(); var converter = (Expression<Func<double, int>>)(d => (int)d); var convertedSpec = spec.From(converter); Assert.That(convertedSpec, Is.TypeOf<Conversion<double, int>>()); Assert.That(convertedSpec, Has.Property("Inner").EqualTo(spec)); Assert.That(convertedSpec, Has.Property("Converter").EqualTo(converter)); }