Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added handling of DateOnly #12

Merged
merged 4 commits into from
Sep 4, 2023
Merged

Conversation

christian-guldbaek
Copy link
Contributor

What

  • In AutoDataWithCustomizationAttribute added a factory to create DateOnly

Why

  • Currently AutoFixture doesn't support generation of the DateOnly type, as per this link

@github-actions
Copy link

github-actions bot commented Sep 4, 2023

Unit Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ ±0s
32 tests ±0  32 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 1634346. ± Comparison against base commit 948f59a.

This pull request removes 20 and adds 20 tests. Note that renamed tests count towards both.
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance(argument1: "argument1d3e4e139-9519-465a-a1dd-0bc613663059", argument2: 88)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance_with_arguments_set(argument1: "argument1579b9088-a029-496f-87d3-dde9b9959153", argument2: 117)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_an_invalid_customization_type_When_creating_Then_it_throws_ArgumentException(arguments: ["15c92499-fe21-4162-bdcd-cedd537ecf40", "f9bb6a88-df1a-476d-9ba2-4396581b31e0", "8a191aee-0d43-4c1b-9565-5da03256800e"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_null_type_When_creating_Then_it_throws_ArgumentNullException(arguments: ["bd5b8346-000d-4d9d-9d92-155438389cba", "7654334b-8c27-42da-a1a6-0b46c134c0c1", "15d65745-7ffd-44cf-b8bd-5cfb44f1f786"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_2_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["7d4e243d-85ab-46be-8036-aea9d6de3f35", "f33a6382-8f68-4963-99b2-9a208da60e50", "a9e35e69-9b36-4e9c-a687-bf00a2e63082"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["3dbafd2b-407d-4669-9f54-dfab07a31d61", "2213a0f3-a421-4b81-99be-58ab44e65e84", "d8659d4f-4565-478f-aa28-f3f1509153af"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_otherCustomizations_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["ddc1468f-e33e-48ec-bd3b-6917a1349afc", "eb45a87b-11e2-42e1-be4e-42149d87f3e0", "32dfa519-827a-4fa2-8ffe-635c67ecad50"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_arguments_with_only_inline_customizations_When_creating_Then_arguments_are_transferred_to_customization(argument1: "ExpectedArgument1", argument2: 123.4, customization: SampleCustomizationWithArgumentsAndVerification { Argument1 = "ExpectedArgument1", Argument2 = 123.4 })
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_arguments_with_only_inline_customizations_When_creating_Then_arguments_are_transferred_to_the_test_method(argument1: "ExpectedArgument1", argument2: 123.4)
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_arguments_with_other_customizations_When_creating_Then_arguments_are_transferred_to_the_test_method(argument1: "ExpectedArgument1", argument2: 123.4)
…
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance(argument1: "argument1338551b1-ab27-4312-8320-7451400eb350", argument2: 219)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance_with_arguments_set(argument1: "argument1551d655b-fb98-474d-8479-c28b4009bfb4", argument2: 24)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_an_invalid_customization_type_When_creating_Then_it_throws_ArgumentException(arguments: ["477b668f-0f0c-4257-8802-3b456a2eed2c", "039a2b70-de68-446b-a3d6-e911a2b84546", "da7bc971-4731-47c3-97b1-1807e92942b5"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_null_type_When_creating_Then_it_throws_ArgumentNullException(arguments: ["98f0a131-445c-4211-85a8-55c210a71c10", "68d0d053-4706-4b51-9fb2-da4fdd4814cc", "0c55afd0-210e-4e39-a572-0bd70c6277d3"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_2_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["a58d6844-64b8-4883-be5f-bb557b12a912", "80fe781e-78c9-4651-8392-3daf1e8b654f", "1eb64868-7954-4721-90a3-5022e5643291"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["d16e3206-1c06-4639-8af7-8d396514e0d6", "33791b40-7c87-4be6-b3c1-88e9194dcb87", "dc2c0137-be36-48f7-bfbc-9bdb5b482215"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_otherCustomizations_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["668a92dd-e9c2-400a-88f2-339f2ae99017", "126d1038-2c3e-480a-9edc-cc7fa452f72c", "9b0fc968-628a-4a3f-bae4-9e418417544e"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_arguments_with_only_inline_customizations_When_creating_Then_arguments_are_transferred_to_customization(argument1: "ExpectedArgument1", argument2: 123.40000000000001, customization: SampleCustomizationWithArgumentsAndVerification { Argument1 = "ExpectedArgument1", Argument2 = 123.40000000000001 })
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_arguments_with_only_inline_customizations_When_creating_Then_arguments_are_transferred_to_the_test_method(argument1: "ExpectedArgument1", argument2: 123.40000000000001)
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_arguments_with_other_customizations_When_creating_Then_arguments_are_transferred_to_the_test_method(argument1: "ExpectedArgument1", argument2: 123.40000000000001)
…

♻️ This comment has been updated with latest results.

@christian-guldbaek christian-guldbaek merged commit 5f96150 into main Sep 4, 2023
4 of 5 checks passed
@christian-guldbaek christian-guldbaek deleted the add-handling-of-DateOnly branch September 4, 2023 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants