{"id":18937422,"url":"https://github.com/verifytests/verify.winforms","last_synced_at":"2025-04-15T18:32:01.278Z","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-04-14T11:25:09.000Z","size":810,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:30:17.357Z","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},"funding":{"github":"VerifyTests"}},"created_at":"2020-03-04T07:54:45.000Z","updated_at":"2025-04-14T11:25:13.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,"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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129226,"owners_count":21217308,"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":[],"created_at":"2024-11-08T12:11:06.908Z","updated_at":"2025-04-15T18:31:56.254Z","avatar_url":"https://github.com/VerifyTests.png","language":"C#","funding_links":["https://github.com/sponsors/VerifyTests"],"categories":[],"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.\n\n**See [Milestones](../../milestones?state=closed) for release notes.**\n\n## NuGet package\n\nhttps://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"}