You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor test Builder to use version-based contract resolution
TestPlaceholderTarget.Builder now defaults to CoreCLRContracts.Register and
supports AddContract<T>(version) for version-based resolution and
AddMockContract<T>(mock) for injecting test doubles. TestContractRegistry
supports Register, SetVersion, and SetMock with proper version lookup.
Migrated 5 Builder-pattern test files from factory lambdas to version-based
contract resolution.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
=>thrownewNotSupportedException("TestContractRegistry does not support dynamic registration. Use SetContracts to configure contracts for testing.");
509
+
contract=creator(_target);
510
+
}
511
+
else
512
+
{
513
+
thrownewNotImplementedException($"Contract {typeof(TContract).Name} is not registered. Use AddContract<T>(version) or AddMockContract<T>(mock) on the Builder.");
0 commit comments