{"id":22070201,"url":"https://github.com/atc-net/atc-test","last_synced_at":"2025-07-24T08:35:44.840Z","repository":{"id":37934449,"uuid":"330383815","full_name":"atc-net/atc-test","owner":"atc-net","description":"A common library for writing tests using XUnit, AutoFixture, NSubstitute and FluentAssertions.","archived":false,"fork":false,"pushed_at":"2024-09-15T19:19:28.000Z","size":315,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-09-16T07:10:10.755Z","etag":null,"topics":["autofixture","fluentassertions","nsubstitute","test","xunit"],"latest_commit_sha":null,"homepage":"https://atc-net.github.io/repository/atc-test","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atc-net.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-17T12:16:40.000Z","updated_at":"2024-09-15T19:16:59.000Z","dependencies_parsed_at":"2024-05-07T07:26:01.516Z","dependency_job_id":"743d0f57-157b-4909-bd7f-0809297b7418","html_url":"https://github.com/atc-net/atc-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc-net%2Fatc-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc-net%2Fatc-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc-net%2Fatc-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atc-net%2Fatc-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atc-net","download_url":"https://codeload.github.com/atc-net/atc-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227422194,"owners_count":17775015,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autofixture","fluentassertions","nsubstitute","test","xunit"],"created_at":"2024-11-30T20:15:19.934Z","updated_at":"2025-07-24T08:35:44.479Z","avatar_url":"https://github.com/atc-net.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NuGet Version](https://img.shields.io/nuget/v/Atc.Test.svg?logo=nuget\u0026style=for-the-badge)](https://www.nuget.org/packages/atc.test)\n\n# ATC Test\n\nCommon tools for writing tests using XUnit, AutoFixture, NSubstitute and FluentAssertions.\n\n\u003e **Version Notes:**  \n\u003e If you are using the `MemberAutoNSubstituteData` attribute, ensure that both `xunit` and `xunit.extensibility.core` packages are set to version **2.9.0**.\n\u003e This is because the latest versions of xUnit are currently incompatible with `MemberAutoNSubstituteData` due to an unresolved issue. Although [xunit/xunit#3031](https://github.com/xunit/xunit/issues/3031) has been closed, the problem remains unresolved.  \n\u003e Upgrading beyond version 2.9.0 may result in test failures or unexpected behavior.\n\n\n## Test Attributes\n\n| Name | Description |\n|-|-|\n| `AutoNSubstituteData` | Provides auto-generated data specimens generated by AutoFixture and NSubstitute as an extension to XUnit's [Theory] attribute.|\n| `InlineAutoNSubstituteData` | Provides a data source for a data theory, with the data coming from inline values combined with auto-generated data specimens generated by AutoFixture and NSubstitute.|\n| `MemberAutoNSubstituteData` | Provides a data source for a data theory, with the data coming from one of the following sources and combined with auto-generated data specimens generated by AutoFixture and NSubstitute.|\n\n\u003e **Note:**\n\u003e NSubstitute is used when the type being created is abstract, or when the `[Substitute]` is applied.\n\n## Test Helpers\n\n| Name | Description |\n|-|-|\n| `EquivalencyAssertionOptionsExtensions` | Extensions for FluentAssertions to compare dates with a precision when using `.BeEquivalentTo()`.|\n| `FixtureFactory` | Static factory for creating AutoFixture `Fixture` instances.|\n| `ObjectExtensions` | Extensions calling protected members on an object.|\n| `SubstituteExtensions` | Extensions for NSubstitutes to wait for calls and get arguments of a received call.|\n| `TaskExtensions` | Extensions for Tasks to add timeouts when awaiting. |\n\n## Extensibility\n\nThe default `Fixture` returned by the `FixtrueFactory.Create()` method is used for all the `Attributes` mentioned above.\n\nTo add customizations to this, you can add the `AutoRegisterAttribute` to any custom `ICustomization` or `ISpecimenBuilder` to have it automatically added to the Fixture.\n\nSee [`CancellationTokenGenerator`](src/Atc.Test/Customizations/Generators/CancellationTokenGenerator.cs) for an example on how to do this.\n\n## How to contribute\n\n[Contribution Guidelines](https://atc-net.github.io/introduction/about-atc#how-to-contribute)\n\n[Coding Guidelines](https://atc-net.github.io/introduction/about-atc#coding-guidelines)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatc-net%2Fatc-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatc-net%2Fatc-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatc-net%2Fatc-test/lists"}