public void It_returns_result_of_ConditionallyTransform_when_condition_is_true() { var conditionalTransform = new TestConditionalTransform(t => true); var property = conditionalTransform.Transform("astring"); property.Should().NotBeNull(); property.Name.Should().Be("astring"); property.Value.Should().Be("astring"); }
public void It_returns_null_when_condition_is_false() { var conditionalTransform = new TestConditionalTransform(t => false); conditionalTransform.Transform("astring").Should().BeNull(); }