❔ 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.
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.