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

Add support for AutoNSubstitute #15

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Conversation

jonasmidstrup
Copy link
Contributor

This PR adds support for AutoFixture AutoNSubstitute.

@jonasmidstrup jonasmidstrup self-assigned this Nov 17, 2023
Copy link

Unit Test Results

  1 files  ±0    1 suites  ±0   0s ⏱️ ±0s
35 tests +1  35 ✔️ +1  0 💤 ±0  0 ±0 

Results for commit e0e5aa0. ± Comparison against base commit 26ad7ea.

This pull request removes 17 and adds 18 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: "argument1b86ebfaf-0874-484f-80c3-8817cf6a46fb", argument2: 27)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance_with_arguments_set(argument1: "argument1a94be0bd-2751-4d8d-8fa6-abc1a1d62ea1", argument2: 149)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_an_invalid_customization_type_When_creating_Then_it_throws_ArgumentException(arguments: ["8783f948-9c59-46b5-9052-df06984f310a", "50db2d58-a5c8-460a-a822-7f2db898db9b", "9032be7e-f841-4fb4-b11c-c0b6d59a8a3f"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_null_type_When_creating_Then_it_throws_ArgumentNullException(arguments: ["a8e4bc4a-491c-4ca6-b537-be1896339136", "36931483-c2b2-40e0-b9ac-187758963bfd", "6f6ec43e-8fc9-4495-9f59-7a404f3218ea"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_2_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["92b1e72a-0398-4413-88d7-3bcdc57eded4", "1f54134b-3999-4cb1-ac26-8f7be84ab656", "56853280-ab85-4df6-b1a7-822db0b566cf"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["74820358-fecf-413e-9dc0-471c19a6349f", "f5c8a842-3ff5-4a62-b54d-a2eb417e74d1", "4d500cd8-1e24-4feb-938c-b3c745015a1e"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_otherCustomizations_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["9ea1341b-b1f4-4894-8450-147accd47cb4", "42d75526-50bf-4808-b68f-f658d04d639a", "ffba3b2b-12c3-486d-aee1-05764674196f"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_null_inlineDataCustomization_When_instantiating_with_2_arguments_Then_throws_ArgumentNullException(arguments: ["91492e5e-8ab7-4ce4-96b8-6d7a5fd71b67", "0619e1c7-a6ff-4235-aefa-e793ff7d2f33", "e2c43a96-6645-47cc-ba21-190c35c5f09a"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_null_inlineDataCustomization_When_instantiating_with_3_arguments_Then_throws_ArgumentNullException(arguments: ["8926b65c-bdba-4c80-9485-ae3405138e36", "dfad13b7-8dd8-4376-bdfb-3a1b436dab17", "4186d5a6-d218-48a9-9151-c6495d1dd804"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_null_otherCustomizations_When_instantiating_with_3_arguments_Then_throws_ArgumentNullException(arguments: ["b6b4f6f8-f511-423f-9338-8a6587fbcba5", "dcffe5ca-16a4-41cc-8579-edb6a3e83c40", "d2e058c1-b0af-4c1a-a1c5-0b9a870cddd4"])
…
Maersk.Test.AutoFixtureExtensions.Tests ‑ AutoNSubstituteWithMembersCustomizationTest+Constructor.Given_no_input_When_creating_an_instance_Then_it_sets_ConfigureMembers_true
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance(argument1: "argument1036cc51b-c52d-4628-ab70-fef8e0e7f2e6", argument2: 40)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_a_valid_customization_type_When_creating_Then_it_creates_an_instance_with_arguments_set(argument1: "argument1e13d2231-ca5c-40d4-b988-1e4a38729944", argument2: 194)
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_an_invalid_customization_type_When_creating_Then_it_throws_ArgumentException(arguments: ["83ae0346-249b-4c9a-a04b-809e65629081", "f5e573aa-5077-466e-ba71-4c03014ea49c", "798b6b3f-d380-4a95-9e0c-34d52516074f"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ CustomizationBuilderTest+CreateCustomizationWithArguments.Given_null_type_When_creating_Then_it_throws_ArgumentNullException(arguments: ["41b55ee8-b2b2-4e4b-9407-de94d3377225", "407b1289-6a9a-4af9-aeca-6fbc79ee44cb", "21d77914-9097-4335-9bac-450d578c2b6a"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_2_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["99b7bea8-7571-46ad-a8b6-9d5b9ae60134", "80fa10d5-6ad6-4c1d-ae2c-02d6db0fbfc4", "5cf86c35-8f49-4461-8f33-a9e4277e99b1"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_inlineDataCustomization_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["2baaacf8-7faa-48f3-8b7e-c023bd0dafef", "2ffc0a66-9f31-4c76-96d4-7996a07eacfa", "5e8b9837-b205-48bc-98d0-e0ff76654ce7"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_an_invalid_customization_type_for_otherCustomizations_with_3_arguments_When_creating_Then_it_throws_ArgumentException(arguments: ["89752d4e-44b3-4fb1-968a-f7aaa0b50ae6", "e5d5ad51-0f32-4e46-b822-bf6a77e8d151", "0e1b9ed9-124f-4fca-ac71-a42e1085e014"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_null_inlineDataCustomization_When_instantiating_with_2_arguments_Then_throws_ArgumentNullException(arguments: ["10f698d3-2473-4d7f-8079-df92fc907e13", "af5798f7-c15d-4842-93b9-eea57ce4ce80", "0800eed5-c2ce-436a-9235-cb432086268a"])
Maersk.Test.AutoFixtureExtensions.Tests ‑ InlineAutoDataWithCustomizationAttributeTest+Constructor.Given_null_inlineDataCustomization_When_instantiating_with_3_arguments_Then_throws_ArgumentNullException(arguments: ["d517b899-171e-4570-b8a9-e449aa8e97d5", "62d8ab9b-d128-415f-9a73-4a467f289a2e", "bff794a4-d8d6-453d-8564-3dab7758b806"])
…

@jonasmidstrup jonasmidstrup merged commit 7f025e2 into main Nov 17, 2023
6 of 7 checks passed
@jonasmidstrup jonasmidstrup deleted the add-support-for-autonsubstitute branch November 17, 2023 09:07
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.

2 participants