{"id":28898084,"url":"https://github.com/verifytests/verify.closedxml","last_synced_at":"2026-02-03T15:31:43.511Z","repository":{"id":264978154,"uuid":"888928226","full_name":"VerifyTests/Verify.ClosedXml","owner":"VerifyTests","description":"Extends Verify to allow verification of Excel documents via ClosedXML.","archived":false,"fork":false,"pushed_at":"2026-01-28T20:57:51.000Z","size":312,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-29T00:57:24.790Z","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":"2024-11-15T09:21:24.000Z","updated_at":"2026-01-28T20:57:54.000Z","dependencies_parsed_at":"2025-10-04T07:11:26.784Z","dependency_job_id":"bd206d14-e0b8-48c2-a5d3-05985c5652e8","html_url":"https://github.com/VerifyTests/Verify.ClosedXml","commit_stats":null,"previous_names":["verifytests/verify.closedxml"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/VerifyTests/Verify.ClosedXml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.ClosedXml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.ClosedXml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.ClosedXml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.ClosedXml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.ClosedXml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.ClosedXml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29047882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:19:55.533Z","status":"ssl_error","status_checked_at":"2026-02-03T15:13:09.723Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-06-21T07:08:46.729Z","updated_at":"2026-02-03T15:31:43.503Z","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.ClosedXml\n\n[![Discussions](https://img.shields.io/badge/Verify-Discussions-yellow?svg=true\u0026label=)](https://github.com/orgs/VerifyTests/discussions)\n[![Build status](https://img.shields.io/appveyor/build/SimonCropp/verify-closedxml)](https://ci.appveyor.com/project/SimonCropp/verify-closedxml)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.ClosedXml.svg)](https://www.nuget.org/packages/Verify.ClosedXml/)\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow verification of Excel documents via [ClosedXML](https://github.com/ClosedXML/ClosedXML).\u003c!-- singleLineInclude: intro. path: /docs/intro.include.md --\u003e\n\nConverts Excel documents (xlsx) to csv for verification.\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.ClosedXml) 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.ClosedXml/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.ClosedXml)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.ClosedXml\n\n\n## Usage\n\n\n### Enable Verify.ClosedXml\n\n\u003c!-- snippet: enable --\u003e\n\u003ca id='snippet-enable'\u003e\u003c/a\u003e\n```cs\n[ModuleInitializer]\npublic static void Initialize() =\u003e\n    VerifyClosedXml.Initialize();\n```\n\u003csup\u003e\u003ca href='/src/Tests/ModuleInitializer.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### Input \n\nFor a given input Excel file.\n\n\u003cimg src=\"/src/Tests/sample_Sheet1.png\"\u003e\n\n\n### Verify a file\n\n\u003c!-- snippet: VerifyExcel --\u003e\n\u003ca id='snippet-VerifyExcel'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyExcel() =\u003e\n    VerifyFile(\"sample.xlsx\");\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L30-L36' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyExcel' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n### Snapshot Result\n\nFor a given Verify, the result is 3 (or more files)\n\n\n#### Metadata\n\n\u003c!-- snippet: Samples.VerifyExcel.DotNet9_0.verified.txt --\u003e\n\u003ca id='snippet-Samples.VerifyExcel.DotNet9_0.verified.txt'\u003e\u003c/a\u003e\n```txt\n{\n  SheetNames: [\n    Sheet1\n  ],\n  Properties: {\n    Title: The Title\n  },\n  WorksheetCount: 1,\n  DefaultFont: Arial,\n  CalculateMode: Default,\n  Style: {\n    Font: {\n      Name: Arial\n    }\n  }\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.VerifyExcel.DotNet9_0.verified.txt#L1-L16' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Samples.VerifyExcel.DotNet9_0.verified.txt' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### CSV\n\nOne per sheet\n\n\u003c!-- snippet: Samples.VerifyExcel.DotNet9_0#Sheet1.verified.csv --\u003e\n\u003ca id='snippet-Samples.VerifyExcel.DotNet9_0#Sheet1.verified.csv'\u003e\u003c/a\u003e\n```csv\n0,First Name,Last Name,Gender,Country,Date,Age,Id,Formula\n1,Dulce,Abril,Female,United States,DateTime_1,32,1562,1594 (G2+H2)\n2,Mara,Hashimoto,Female,Great Britain,DateTime_2,25,1582,1607 (G3+H3)\n3,Philip,Gent,Male,France,DateTime_3,36,2587,2623 (G4+H4)\n4,Kathleen,Hanner,Female,United States,DateTime_1,25,3549,3574 (G5+H5)\n5,Nereida,Magwood,Female,United States,DateTime_2,58,2468,2526 (G6+H6)\n6,Gaston,Brumm,Male,United States,DateTime_3,24,2554,2578 (G7+H7)\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.VerifyExcel.DotNet9_0#Sheet1.verified.csv#L1-L7' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Samples.VerifyExcel.DotNet9_0#Sheet1.verified.csv' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n#### Excel file\n\n\u003cimg src=\"/src/Tests/Samples.VerifyExcel.DotNet9_0_Sheet1.png\"\u003e\n\n\n### Verify a Stream\n\n\u003c!-- snippet: VerifyExcelStream --\u003e\n\u003ca id='snippet-VerifyExcelStream'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyExcelStream()\n{\n    var stream = new MemoryStream(File.ReadAllBytes(\"sample.xlsx\"));\n    return Verify(stream, \"xlsx\");\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L73-L82' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-VerifyExcelStream' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n### Verify a ClosedXML SpreadsheetDocument\n\n\u003c!-- snippet: XLWorkbook --\u003e\n\u003ca id='snippet-XLWorkbook'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task XLWorkbook()\n{\n    using var book = new XLWorkbook();\n\n    var sheet = book.Worksheets.Add(\"Basic Data\");\n\n    sheet.Cell(\"A1\").Value = \"ID\";\n    sheet.Cell(\"B1\").Value = \"Name\";\n\n    sheet.Cell(\"A2\").Value = 1;\n    sheet.Cell(\"B2\").Value = \"John Doe\";\n\n    sheet.Cell(\"A3\").Value = 2;\n    sheet.Cell(\"B3\").Value = \"Jane Smith\";\n\n    return Verify(book);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L42-L63' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-XLWorkbook' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.closedxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.closedxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.closedxml/lists"}