{"id":33167060,"url":"https://github.com/VerifyTests/Verify.WinForms","last_synced_at":"2025-11-20T18:00:42.896Z","repository":{"id":37866656,"uuid":"244839834","full_name":"VerifyTests/Verify.WinForms","owner":"VerifyTests","description":"Extends Verify to allow verification of WinForms UIs.","archived":false,"fork":false,"pushed_at":"2025-11-11T10:39:40.000Z","size":840,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-11T12:17:03.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/VerifyTests.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","code_of_conduct":"code_of_conduct.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"VerifyTests"}},"created_at":"2020-03-04T07:54:45.000Z","updated_at":"2025-11-11T10:39:44.000Z","dependencies_parsed_at":"2024-05-09T15:12:29.116Z","dependency_job_id":"8ab9213b-23b6-40d7-838c-0c9da3cc8874","html_url":"https://github.com/VerifyTests/Verify.WinForms","commit_stats":{"total_commits":755,"total_committers":4,"mean_commits":188.75,"dds":0.6105960264900663,"last_synced_commit":"e542a95bfb8723a2232eab6cd32ade8079a63aa5"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/VerifyTests/Verify.WinForms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.WinForms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.WinForms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.WinForms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.WinForms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.WinForms/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.WinForms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285484486,"owners_count":27179744,"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","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-11-16T00:00:43.036Z","updated_at":"2025-11-20T18:00:42.890Z","avatar_url":"https://github.com/VerifyTests.png","language":"C#","funding_links":["https://github.com/sponsors/VerifyTests"],"categories":["Validation / DataBinding / MVx / Interactions"],"sub_categories":[],"readme":"# \u003cimg src=\"/src/icon.png\" height=\"30px\"\u003e Verify.WinForms\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://ci.appveyor.com/api/projects/status/lgjcs6xhxhhw0f02?svg=true)](https://ci.appveyor.com/project/SimonCropp/verify-winforms)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.WinForms.svg)](https://www.nuget.org/packages/Verify.WinForms/)\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow verification of WinForms UIs.\u003c!-- singleLineInclude: intro. path: /docs/intro.include.md --\u003e\n\n**See [Milestones](../../milestones?state=closed) for release notes.**\n\n\n## Sponsors\n\n\n### Entity Framework Extensions\u003c!-- include: zzz. path: /docs/zzz.include.md --\u003e\n\n[Entity Framework Extensions](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.WinForms) is a major sponsor and is proud to contribute to the development this project.\n\n[![Entity Framework Extensions](https://raw.githubusercontent.com/VerifyTests/Verify.WinForms/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.WinForms)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.WinForms\n\n\n## Usage\n\n\u003c!-- snippet: enable --\u003e\n\u003ca id='snippet-enable'\u003e\u003c/a\u003e\n```cs\n[ModuleInitializer]\npublic static void Init() =\u003e\n    VerifyWinForms.Initialize();\n```\n\u003csup\u003e\u003ca href='/src/Tests/ModuleInit.cs#L3-L9' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-enable' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n### Form\n\nA visual element (Form/Control etc) can be verified as follows:\n\n\u003c!-- snippet: FormUsage --\u003e\n\u003ca id='snippet-FormUsage'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task FormUsage() =\u003e\n    Verify(new MyForm());\n```\n\u003csup\u003e\u003ca href='/src/Tests/TheTests.cs#L6-L12' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-FormUsage' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nWith the state of the element being rendered as a verified file:\n\n[TheTests.FormUsage.Net.verified.png](/src/Tests/TheTests.FormUsage.Net.verified.png):\n\n\u003cimg src=\"/src/Tests/TheTests.FormUsage.Net.verified.png\" width=\"200px\"\u003e\n\n\n### ContextMenuStrip\n\nA `ContextMenuStrip` can be verified as follows:\n\n\u003c!-- snippet: ContextMenuStrip --\u003e\n\u003ca id='snippet-ContextMenuStrip'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task ContextMenuStrip()\n{\n    var menu = new ContextMenuStrip();\n    var items = menu.Items;\n\n    items.Add(new ToolStripMenuItem(\"About\"));\n    items.Add(new ToolStripMenuItem(\"Exit\"));\n    return Verify(menu);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/TheTests.cs#L22-L35' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-ContextMenuStrip' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\nWith the state of the element being rendered as a verified file:\n\n[TheTests.FormUsage.Net.verified.png](/src/Tests/TheTests.ContextMenuStrip.Net.verified.png):\n\n\u003cimg src=\"/src/Tests/TheTests.ContextMenuStrip.Net.verified.png\" width=\"200px\"\u003e\n\n\n## OS specific rendering\n\nThe rendering of Form elements can very slightly between different OS versions. This can make verification on different machines (eg CI) problematic. There are several approaches to mitigate this:\n\n * Using a [custom comparer](https://github.com/VerifyTests/Verify/blob/master/docs/comparer.md)\n\n\n## Icon\n\n[Gem](https://thenounproject.com/term/gem/2247823/) designed by [Adnen Kadri](https://thenounproject.com/adnen.kadri/) from [The Noun Project](https://thenounproject.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVerifyTests%2FVerify.WinForms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FVerifyTests%2FVerify.WinForms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FVerifyTests%2FVerify.WinForms/lists"}