Skip to content

Write JSON serialization tests against two versions of UnitsNet.Serialization.JsonNet #417

@angularsen

Description

@angularsen

To catch future breaking changes in UnitsNet, as seen in #416.

The json serialiation tests should run against two UnitsNet.Serialization.JsonNet dlls:

  • The UnitsNet.Serialization.JsonNet project, which is built and run in the tests
  • v1.3.0 or some other "old" version that currently works against latest UnitsNet, but may later stop working

I'm not exactly sure how, but it seems you can side-load two versions of a dll and call them separately:

https://stackoverflow.com/questions/42715564/using-2-different-versions-of-the-same-dll
https://devnet.kentico.com/articles/referencing-multiple-versions-of-the-same-assembly-in-a-single-application
https://docs.microsoft.com/en-us/dotnet/framework/configure-apps/file-schema/runtime/codebase-element

Alternatively, maybe simpler, is to have two test projects with the same test code and different references to UnitsNet.Serialization.JsonNet.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions