diff --git a/src/request.tests/CompiletimeRequestDispatchGeneratorTests.cs b/src/request.tests/CompiletimeRequestDispatchGeneratorTests.cs index 13d38e6..3fe15be 100644 --- a/src/request.tests/CompiletimeRequestDispatchGeneratorTests.cs +++ b/src/request.tests/CompiletimeRequestDispatchGeneratorTests.cs @@ -48,7 +48,7 @@ internal sealed class CompileTimeRequestDispatchGeneratorTests } [Test] - public async Task I_get_an_error_for_an_invalid_explicit_name() + public async Task I_can_get_an_error_for_an_invalid_explicit_name() { var result = Roslyn.SourceGenerator(options => { @@ -70,7 +70,7 @@ internal sealed class CompileTimeRequestDispatchGeneratorTests } [Test] - public async Task I_get_an_error_when_the_assembly_name_cannot_be_sanitized_to_a_valid_identifier() + public async Task I_can_get_an_error_when_the_assembly_name_cannot_be_sanitized_to_a_valid_identifier() { var result = Roslyn.SourceGenerator(options => { @@ -91,7 +91,7 @@ internal sealed class CompileTimeRequestDispatchGeneratorTests } [Test] - public async Task I_get_an_error_for_nested_handlers_and_they_are_ignored() + public async Task I_can_get_an_error_for_nested_handlers_and_they_are_ignored() { var result = Roslyn.SourceGenerator(options => { @@ -113,7 +113,7 @@ internal sealed class CompileTimeRequestDispatchGeneratorTests } [Test] - public async Task I_still_generate_a_no_op_extension_when_no_handlers_exist() + public async Task I_can_still_generate_a_no_op_extension_when_no_handlers_exist() { var result = Roslyn.SourceGenerator(options => { diff --git a/src/request.tests/RequestDispatcherBuilderExtensionsTests.cs b/src/request.tests/RequestDispatcherBuilderExtensionsTests.cs index 6724d47..4553ea8 100644 --- a/src/request.tests/RequestDispatcherBuilderExtensionsTests.cs +++ b/src/request.tests/RequestDispatcherBuilderExtensionsTests.cs @@ -109,7 +109,7 @@ internal sealed class RequestDispatcherBuilderExtensionsTests } [Test] - public async Task I_get_an_exception_when_adding_a_nested_request_handler() + public async Task I_can_get_an_exception_when_adding_a_nested_request_handler() { var services = new ServiceCollection(); var builder = services.AddRequestDispatcher(); @@ -124,7 +124,7 @@ internal sealed class RequestDispatcherBuilderExtensionsTests } [Test] - public async Task I_get_an_exception_when_adding_nested_request_handlers_with_a_lifetime() + public async Task I_can_get_an_exception_when_adding_nested_request_handlers_with_a_lifetime() { var services = new ServiceCollection(); var builder = services.AddRequestDispatcher(); diff --git a/src/request.tests/SearchHandlerInAssemblyTests.cs b/src/request.tests/SearchHandlerInAssemblyTests.cs index 2c9c073..917d582 100644 --- a/src/request.tests/SearchHandlerInAssemblyTests.cs +++ b/src/request.tests/SearchHandlerInAssemblyTests.cs @@ -47,7 +47,7 @@ internal sealed class SearchHandlerInAssemblyTests } [Test] - public async Task I_get_an_exception_when_nested_handlers_are_present() + public async Task I_can_get_an_exception_when_nested_handlers_are_present() { var assembly = Roslyn.Compile(options => options.AddFromEmbeddedSource("SearchNestedHandler.cs")); diff --git a/src/request.validation.tests/PropertyPathTests.cs b/src/request.validation.tests/PropertyPathTests.cs index 1d495ae..729542d 100644 --- a/src/request.validation.tests/PropertyPathTests.cs +++ b/src/request.validation.tests/PropertyPathTests.cs @@ -13,7 +13,7 @@ internal sealed class PropertyPathTests }; [Test] - public async Task I_serialize_property_paths_using_the_json_naming_policy() + public async Task I_can_serialize_property_paths_using_the_json_naming_policy() { var problem = new Problem { @@ -27,7 +27,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_serialize_indexed_property_paths_using_the_json_naming_policy() + public async Task I_can_serialize_indexed_property_paths_using_the_json_naming_policy() { var problem = new Problem { @@ -41,7 +41,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_serialize_paths_with_multiple_indexers_using_the_json_naming_policy() + public async Task I_can_serialize_paths_with_multiple_indexers_using_the_json_naming_policy() { var problem = new Problem { @@ -70,7 +70,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_treat_multiple_indexers_as_a_single_segment() + public async Task I_can_treat_multiple_indexers_as_a_single_segment() { var propertyPath = (PropertyPath)"Matrix[1][2].Value"; var segments = (IReadOnlyList)propertyPath; @@ -82,7 +82,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_do_not_split_dots_inside_brackets() + public async Task I_can_avoid_splitting_dots_inside_brackets() { var propertyPath = (PropertyPath)"Items[foo.bar].Name"; var segments = (IReadOnlyList)propertyPath; @@ -96,7 +96,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_expose_empty_segments_for_malformed_paths() + public async Task I_can_expose_empty_segments_for_malformed_paths() { var propertyPath = (PropertyPath)"Address..Street"; var segments = (IReadOnlyList)propertyPath; @@ -111,7 +111,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_treat_an_empty_path_as_having_no_segments() + public async Task I_can_treat_an_empty_path_as_having_no_segments() { var propertyPath = (PropertyPath)""; @@ -134,7 +134,7 @@ internal sealed class PropertyPathTests } [Test] - public async Task I_see_it_throw_for_out_of_range_segment_access() + public async Task I_can_see_it_throw_for_out_of_range_segment_access() { var propertyPath = (PropertyPath)"Name"; diff --git a/src/request.validation.tests/RuleBuilderExtensionsTests.cs b/src/request.validation.tests/RuleBuilderExtensionsTests.cs index 00da15e..5b5271a 100644 --- a/src/request.validation.tests/RuleBuilderExtensionsTests.cs +++ b/src/request.validation.tests/RuleBuilderExtensionsTests.cs @@ -299,7 +299,7 @@ internal sealed class RuleBuilderExtensionsTests } [Test] - public async Task I_see_it_throw_for_invalid_length_configuration() + public async Task I_can_see_it_throw_for_invalid_length_configuration() { await Assert.That(() => new PropertyValidator(model => model.Value, rule => rule.Length(5, 4))) @@ -307,7 +307,7 @@ internal sealed class RuleBuilderExtensionsTests } [Test] - public async Task I_see_it_throw_for_negative_min_length_configuration() + public async Task I_can_see_it_throw_for_negative_min_length_configuration() { await Assert.That(() => new PropertyValidator(model => model.Value, rule => rule.MinLength(-1))) @@ -315,7 +315,7 @@ internal sealed class RuleBuilderExtensionsTests } [Test] - public async Task I_see_it_throw_for_invalid_between_configuration() + public async Task I_can_see_it_throw_for_invalid_between_configuration() { await Assert.That(() => new PropertyValidator(model => model.Value, rule => rule.Between(10, 0))) diff --git a/src/request.validation.tests/ValidatorTests.cs b/src/request.validation.tests/ValidatorTests.cs index 5358367..14239f7 100644 --- a/src/request.validation.tests/ValidatorTests.cs +++ b/src/request.validation.tests/ValidatorTests.cs @@ -30,7 +30,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_validate_all_rules_on_every_call() + public async Task I_can_validate_all_rules_on_every_call() { var validator = CreatePersonValidator(); @@ -78,7 +78,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_skip_null_nested_values_for_composed_validators() + public async Task I_can_skip_null_nested_values_for_composed_validators() { var validator = new PropertyValidator( person => person.Address, @@ -192,7 +192,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_see_it_throw_for_non_member_expressions() + public async Task I_can_see_it_throw_for_non_member_expressions() { await Assert.That(() => new PropertyValidator( person => person.Name!.Trim().Length, @@ -201,7 +201,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_aggregate_all_failures_in_rule_order() + public async Task I_can_aggregate_all_failures_in_rule_order() { var validator = new OrderedFailuresValidator(); @@ -214,7 +214,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_apply_default_problem_metadata() + public async Task I_can_apply_default_problem_metadata() { var validator = new PropertyValidator( model => model.Value, @@ -232,7 +232,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_skip_null_collections_for_collection_validators() + public async Task I_can_skip_null_collections_for_collection_validators() { var validator = new CollectionValidator( team => team.Members!, @@ -245,7 +245,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_skip_empty_collections_for_collection_validators() + public async Task I_can_skip_empty_collections_for_collection_validators() { var validator = new CollectionValidator( team => team.Members, @@ -296,7 +296,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_see_it_throw_for_type_mismatch() + public async Task I_can_see_it_throw_for_type_mismatch() { var validator = CreatePersonValidator(); var context = new ValidationContext(new object()); @@ -305,7 +305,7 @@ internal sealed class ValidatorTests } [Test] - public async Task I_see_it_throw_when_a_context_resolved_validator_cannot_be_resolved() + public async Task I_can_see_it_throw_when_a_context_resolved_validator_cannot_be_resolved() { var validator = new PropertyValidator( person => person.Address,