Skip to content

Write Comprehensive Unit Tests - Create a test suite for PNodeData focusing on data manipulation, attributes, and operations. #71

@marcnoon

Description

@marcnoon

Create the comprehensive Unit Tests. Use the solution TestAlpha.sln and use those tests and adapt them to PNodeData using the new interfaces and thoroughly test each method in the interface.

After initial tests are completed add edge case tests. Any tests that do not build or compile simply comment them out and add comments to explain what was intended.

Add placeholder tests to allow for better tests with prefixes, attributes, converting between xml and back to the pNode, also use these new interfaces to go between JSON and pNode so they are interchangeable and add placeholders for those tests as well.

Finally ensure XmlDocument works well going back and forth between a pNode and an XML document. So add placeholders to thoroughly test all use cases. Also have a section of placeholders for testing exceptions like wrong element or tag names, and using binary data for the pNode tag element and converting that to base64 and properly setting an attribute to indicate that that node or element is base64. Since the pNode tag is an object it can be both the value and a binary value so those scenarios needs to be tested.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions