public void AddResponseTransform_should_not_fail_if_transforms_list_is_null() { configuration.ResponseTransforms = null; configuration.AddResponseTransform(Substitute.For <IResponseTransform>()); configuration.ResponseTransforms.Should().HaveCount(1); }
public void Validate_should_produce_an_error_if_response_transforms_list_contains_a_null_value() { configuration.AddResponseTransform(null as IResponseTransform); Console.Out.WriteLine(configuration.Validate().Should().ContainSingle().Which); }