Is there any point Unit testing serialization?

后端 未结 13 1224
慢半拍i
慢半拍i 2021-02-01 23:38

I have a class that serializes a set of objects (using XML serialization) that I want to unit test.

My problem is it feels like I will be testing the .NET implementation

13条回答
  •  南旧
    南旧 (楼主)
    2021-02-02 00:35

    If there's nothing you can do to change the way your class serializes, then you're testing .NET's implementation of XML serialization ;-)

提交回复
热议问题