{"id":28898146,"url":"https://github.com/verifytests/verify.sylvan.data.excel","last_synced_at":"2025-09-21T06:51:24.239Z","repository":{"id":290857190,"uuid":"975784892","full_name":"VerifyTests/Verify.Sylvan.Data.Excel","owner":"VerifyTests","description":"Extends Verify to allow verification of documents via Sylvan.Data.Excel.","archived":false,"fork":false,"pushed_at":"2025-06-16T09:06:31.000Z","size":101,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T14:07:51.186Z","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},"funding":{"github":"VerifyTests"}},"created_at":"2025-04-30T22:32:40.000Z","updated_at":"2025-06-16T09:06:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"5062a4aa-f2a7-4bde-b3d9-e148697bd026","html_url":"https://github.com/VerifyTests/Verify.Sylvan.Data.Excel","commit_stats":null,"previous_names":["verifytests/verify.sylvan.data.excel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VerifyTests/Verify.Sylvan.Data.Excel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Sylvan.Data.Excel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Sylvan.Data.Excel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Sylvan.Data.Excel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Sylvan.Data.Excel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VerifyTests","download_url":"https://codeload.github.com/VerifyTests/Verify.Sylvan.Data.Excel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VerifyTests%2FVerify.Sylvan.Data.Excel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261080623,"owners_count":23106602,"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":"2025-06-21T07:08:56.193Z","updated_at":"2025-09-21T06:51:24.222Z","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.Sylvan.Data.Excel\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/q1eqcnbptyjl24hp?svg=true)](https://ci.appveyor.com/project/SimonCropp/verify-sylvan-data-excel)\n[![NuGet Status](https://img.shields.io/nuget/v/Verify.Sylvan.Data.Excel.svg)](https://www.nuget.org/packages/Verify.Sylvan.Data.Excel/)\n\nCode provided by Cédric Luthi https://github.com/0xced\n\nExtends [Verify](https://github.com/VerifyTests/Verify) to allow verification of Excel documents via [Sylvan.Data.Excel](https://github.com/MarkPflug/Sylvan.Data.Excel/).\u003c!-- singleLineInclude: intro. path: /docs/intro.include.md --\u003e\n\nConverts Excel documents (xls, xlsb and 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.Sylvan.Data.Excel) 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.Sylvan.Data.Excel/refs/heads/main/docs/zzz.png)](https://entityframework-extensions.net/?utm_source=simoncropp\u0026utm_medium=Verify.Sylvan.Data.Excel)\u003c!-- endInclude --\u003e\n\n\n## NuGet\n\n * https://nuget.org/packages/Verify.Sylvan.Data.Excel\n\n\n## Usage\n\n\n### Enable Verify.Sylvan.Data.Excel\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    VerifySylvanDataExcel.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### Excel\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#L8-L14' 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#### 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#L32-L41' 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 ExcelDataReader\n\n\u003c!-- snippet: ExcelDataReader --\u003e\n\u003ca id='snippet-ExcelDataReader'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task VerifyExcelDataReader()\n{\n    using var stream = File.OpenRead(\"sample.xlsx\");\n    using var reader = ExcelDataReader.Create(stream, ExcelWorkbookType.ExcelXml);\n    return Verify(reader);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L20-L30' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-ExcelDataReader' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n\n\n### Example snapshot\n\n\u003c!-- snippet: Samples.VerifyExcel.verified.csv --\u003e\n\u003ca id='snippet-Samples.VerifyExcel.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,2017-10-15,32,1562,1594\n2,Mara,Hashimoto,Female,Great Britain,2016-08-16,25,1582,1607\n3,Philip,Gent,Male,France,2015-05-21,36,2587,2623\n4,Kathleen,Hanner,Female,United States,2017-10-15,25,3549,3574\n5,Nereida,Magwood,Female,United States,2016-08-16,58,2468,2526\n6,Gaston,Brumm,Male,United States,2015-05-21,24,2554,2578\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.VerifyExcel.verified.csv#L1-L7' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-Samples.VerifyExcel.verified.csv' title='Start of snippet'\u003eanchor\u003c/a\u003e\u003c/sup\u003e\n\u003c!-- endSnippet --\u003e\n \n\n### CsvDataWriterOptions\n\nUsed to configure options for writing CSV data.\n\n\u003c!-- snippet: CsvDataWriterOptions --\u003e\n\u003ca id='snippet-CsvDataWriterOptions'\u003e\u003c/a\u003e\n```cs\n[Test]\npublic Task CsvDataWriterOptions()\n{\n    using var stream = File.OpenRead(\"sample.xlsx\");\n    var options = new CsvDataWriterOptions\n    {\n        Delimiter = '\\t',\n        Quote = '\"',\n    };\n\n    return Verify(stream)\n        .CsvDataWriterOptions(options);\n}\n```\n\u003csup\u003e\u003ca href='/src/Tests/Samples.cs#L43-L59' title='Snippet source file'\u003esnippet source\u003c/a\u003e | \u003ca href='#snippet-CsvDataWriterOptions' 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.sylvan.data.excel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fverifytests%2Fverify.sylvan.data.excel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fverifytests%2Fverify.sylvan.data.excel/lists"}