Esempio n. 1
0
        public void AddRequestTransform_should_not_fail_if_transforms_list_is_null()
        {
            configuration.RequestTransforms = null;

            configuration.AddRequestTransform(Substitute.For <IRequestTransform>());

            configuration.RequestTransforms.Should().HaveCount(1);
        }
        public void Validate_should_produce_an_error_if_request_transforms_list_contains_a_null_value()
        {
            configuration.AddRequestTransform(null as IRequestTransform);

            Console.Out.WriteLine(configuration.Validate().Should().ContainSingle().Which);
        }