Add tests for numeric properties in DEFINE CLASS - #2067
Merged
Conversation
RobertvanderHulst
added a commit
that referenced
this pull request
Sep 1, 2026
…2072) * [Compiler tests] - Adjusted NetCore runtime folder in automated tests runner. Also temporarily disabled C548 from running, to check if this is the culprit in making other tests fail later * [Compiler tests]- Indeed C548 was one of the culprits, moved it last in the order of runtime tests. Also updated several XSharp runtime dlls for the tests, hopefully this will take care of the remaining problems in running the tests * [Compiler tests] All automated tests should be now passing both compiling and runtime tests * Fix SYSMETRIC() by going through GetSystemMetrics() (#2065) * [VsIntegration] Fix reference resolution: marshal AddPendingReferences onto the UI thread (#2066) * Add tests for numeric properties in DEFINE CLASS (#2067) * Add tests for numeric properties in DEFINE CLASS * Change to usual for late binding * [VSIntegration] Add WinForms Designer shadow-file bridge for SDK-style projects Redirects "View Designer" on a SDK-style .prg to an auto-generated companion C# project instead of the unsupported out-of-process Designer path, since it has no extensibility point for third-party languages. Includes commands to sync Designer-added event handlers and general property/control changes back into the real X# source. * [VSIntegration] Update comments and Docs * [VSIntegration] Fix ViewForm routing, auto-detect HasDesigner and its icon * [VSIntegration] Add auto-sync-on-save, cleanup-on-close, fix reference throttle race. * Logging Exception with stacktrace and as arror (#2071) * [VSIntegration] Nest the shadow companion project in a Solution Folder instead of adding it at the same level as the X# project * Implement XMLTOCURSOR() (#2070) * Implement XMLTOCURSOR() * Move the internal functions into an internal class * [VSIntegration] Fix event-handler caret positioning. Fix old ShadowDesigner references that may persist. Moved all Diagnostics to X# Logging system. * Prevent double licking on designer.prg from opening the form designer * Generate comments in InitializeComponent * [CodedomProvider] Fix handling of System.Single types * Fix namespaces which are different between .net framework and .net 8 --------- Co-authored-by: cpyrgas <chris@xsharp.eu> Co-authored-by: Irwin <rodriguez.irwin@gmail.com> Co-authored-by: Fabrice Foray <fforay@users.noreply.github.com> Co-authored-by: Robert van der Hulst <robert@xsharp.eu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed there is no test anywhere that uses DEFINE CLASS, so I added a small one. This is not a fix but a guard on two facts: one reads the property through the typed object, the other through a USUAL so the access goes late bound.