© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
4 replies
Christmas Jameston

❔ Unit Testing for OpenXML

I am having trouble writing a unit test for a piece of code at work that deals with OpenXML.

Outline of the program is that the function takes in a SpreadsheetDocument object, reads it, and extracts all of the cell values into a dictionary containing a list of values (example: { "Values" : [ "Element0", "Element1", "Etc." ] }). I return this created dict.

I've tried to figure out how to write unit tests for this, but I am really struggling to do so. Can anyone give me some pointers? Thanks.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

unit testing
C#CC# / help
2y ago
Unit testing
C#CC# / help
2y ago
✅ Unit testing
C#CC# / help
3y ago
Unit testing FakeItEasy
C#CC# / help
2y ago