Verified, then logged.
Wed 2 Dec 2026 · 07:58 KST / 22:58 UTC한국어 | ENSearch /

Breaking02 / IT

Meridian uses 614 pricing cases to test .NET migration

Tests check the legacy engine against approved files and compare both engines using identical inputs.

Qaiser Mehmood said in the GitHub repository README that his example migration of Meridian, a fictional ordering portal, to .NET 10 includes 614 cases for comparing pricing calculations. The example accompanies his book on migrating legacy portals with coding agents.

Building and testing the example requires .NET SDK 10.0.404 or a later 10.0 feature band. Microsoft provides the SDK installers on its Korean-language download page. Running dotnet test --solution Meridian.slnx from the repository starts the tests.

The golden master tests check the legacy engine’s output against approved baseline files. Separate tests compare the new and legacy engines using identical inputs. The Meridian.Legacy.Pricing project builds the unchanged legacy pricing source for netstandard2.0.

The legacy engine waives shipping when the net order amount exceeds $500. In the approved baseline, a net order of $500.00 incurs a $33.96 shipping charge. At $500.01, the charge is $0.

Separate tests apply two rule changes independently. One rounds midpoint values away from zero, and the other waives shipping at exactly $500. Each test passes only if at least one input produces a different total from the legacy calculation.

GitHub Actions runs the tests on ubuntu-24.04. If a pull request changes an approved baseline file, a script checks for the [golden-approved] marker in the message of the merge commit that CI checked out.

The README gives no results from reproducing the baseline files on the original Windows runtime. To capture pricing results on that runtime, it suggests adding net48, the target for .NET Framework 4.8, to the test project on Windows.