Skip to content

Added support for expressions in keypath building #3468

Added support for expressions in keypath building

Added support for expressions in keypath building #3468

GitHub Actions / Results Maui.MacCatalyst failed Mar 5, 2024 in 0s

Results Maui.MacCatalyst ❌

Tests failed

❌ TestResults.MacCatalyst.xml

6065 tests were completed in 494s with 5448 passed, 2 failed and 615 skipped.

Test suite Passed Failed Skipped Time
Realm.Tests.dll.Realms.Tests.Database.NotificationTests. 58✔️ 2❌ 1✖️ 10s

❌ Realm.Tests.dll.Realms.Tests.Database.NotificationTests.

Realms.Tests.Database.NotificationTests
  ✔️ BackLinkInObjectShouldNotFireNotificationOnChange
  ✔️ CollectionPropertiesOfDifferentTypeShouldNotFireNotificationsOnChange
  ✔️ CollectionPropertiesOfSameTypeShouldNotFireNotificationsOnChange
  ✔️ DictionaryNotificationToken_KeepsCollectionAlive
  ✔️ DictionaryOnCollectionChangedShouldFireOnAddRemove
  ✔️ DictionarySubscribeInTransaction
  ✔️ DictionaryUnsubscribeInNotificationCallback
  ✔️ KeyPath_CanBeBuiltFromExpressions
  ✔️ KeyPath_ImplicitOperator_CorrectlyConvertsFromString
  ❌ KeyPath_WithInvalidExpressions_ThrowsException
	  Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
	  But was:  "The input expression cannot be null Arg_ParamName_Name, expression"
	
  ✔️ KeyPathsCollection_CanBeBuiltFromExpressions
  ✔️ KeyPathsCollection_CanBeBuiltInDifferentWays
  ❌ KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions
	  Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
	  But was:  "The input expression cannot be null Arg_ParamName_Name, expression"
	
  ✔️ Link_ShouldOnlyFireNotificationForReassignment
  ✔️ List_WhenParentIsDeleted_RaisesReset
  ✔️ List_WhenTransactionHasBothAddAndRemove_ShouldReset
  ✔️ List_WhenUnsubscribed_ShouldStopReceivingNotifications
  ✔️ ListOnCollectionChangedShouldFireOnAddMoveReplaceRemove
  ✔️ ListReplace_RaisesReplaceNotifications
  ✔️ ListShouldSendNotifications
  ✔️ ModifiedIndices_ReportCorrectlyForOldAndNewVersions
  ✔️ PrimitivePropertyInObjectShouldFireNotificationOnChange
  ✔️ RealmError_WhenNoSubscribers_OutputsMessageInConsole
  ✔️ ResultOnCollectionChangedShouldFireOnAddRemove
  ✔️ Results_WhenTransactionHasBothAddAndRemove_ShouldReset
  ✔️ Results_WhenUnsubscribed_ShouldStopReceivingNotifications
  ✔️ ResultsShouldSendNotifications
  ✔️ SetOnCollectionChangedShouldFireOnAddRemove
  ✔️ ShouldTriggerRealmChangedEvent
  ✔️ SubscribeForNotifications_InvokedWithInitialCallback
  ✔️ SubscribeWithKeypaths_AnyKeypath_RaisesNotificationsForResults
  ✔️ SubscribeWithKeypaths_Backlinks
  ✔️ SubscribeWithKeypaths_DisposingToken_CancelNotifications
  ✔️ SubscribeWithKeypaths_FullKeyPath_SameAsFourLevelsDepth
  ✔️ SubscribeWithKeypaths_MappedClass_WorksCorrectly
  ✔️ SubscribeWithKeypaths_MappedProperty_UsesOriginalName
  ✔️ SubscribeWithKeypaths_MultipleKeypaths
  ✔️ SubscribeWithKeypaths_NestedProperties_WorksWithCollections
  ✔️ SubscribeWithKeypaths_NestedProperties_WorksWithScalar
  ✔️ SubscribeWithKeypaths_OnCollection_Dictionary
  ✔️ SubscribeWithKeypaths_OnCollection_DictionaryRemapped
  ✔️ SubscribeWithKeypaths_OnCollection_List
  ✔️ SubscribeWithKeypaths_OnCollection_ListRemapped
  ✔️ SubscribeWithKeypaths_OnCollection_Set
  ✔️ SubscribeWithKeypaths_OnCollection_SetRemapped
  ✔️ SubscribeWithKeypaths_ShallowKeypath_RaisesOnlyCollectionNotifications
  ✔️ SubscribeWithKeypaths_TopLevelProperties_WorksWithCollection
  ✔️ SubscribeWithKeypaths_TopLevelProperties_WorksWithScalar
  ✔️ SubscribeWithKeypaths_WildCard_CanGetDeeperThanFourLevels
  ✔️ SubscribeWithKeypaths_WildCard_WorksAfterCollectionProperty
  ✔️ SubscribeWithKeypaths_WildCard_WorksAfterLinkProperty
  ✔️ SubscribeWithKeypaths_WildCard_WorksWithMultipleLevels
  ✔️ SubscribeWithKeypaths_WildCard_WorksWithPropertyAfterward
  ✔️ SubscribeWithKeypaths_WildCard_WorksWithTopLevel
  ✖️ SubscribeWithKeypaths_WildcardOnScalarProperty_Throws
  ✔️ SubscribeWithKeypaths_WithEmptyOrWhiteSpaceKeypaths_Throws
  ✔️ SubscribeWithKeypaths_WithNonRealmObjectType_Throws
  ✔️ SubscribeWithKeypaths_WithRepeatedKeypath_IgnoresRepeated
  ✔️ SubscribeWithKeypaths_WithUnknownProperty_Throws
  ✔️ UnsubscribeInNotificationCallback
  ✔️ WhenSynchronizationContextExists_ShouldAutoRefresh

Annotations

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Maui.MacCatalyst

Realm.Tests.dll.Realms.Tests.Database.NotificationTests. ► Realms.Tests.Database.NotificationTests ► KeyPath_WithInvalidExpressions_ThrowsException

Failed test found in:
  TestResults.MacCatalyst.xml
Error:
    Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
    But was:  "The input expression cannot be null Arg_ParamName_Name, expression"
  
Raw output
   at Realms.Tests.Database.NotificationTests.KeyPath_WithInvalidExpressions_ThrowsException()

Check failure on line -1 in No path available

See this annotation in the file changed.

@github-actions github-actions / Results Maui.MacCatalyst

Realm.Tests.dll.Realms.Tests.Database.NotificationTests. ► Realms.Tests.Database.NotificationTests ► KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions

Failed test found in:
  TestResults.MacCatalyst.xml
Error:
    Expected: <System.ArgumentException> and property Message equal to "The input expression cannot be null (Parameter 'expression')"
    But was:  "The input expression cannot be null Arg_ParamName_Name, expression"
  
Raw output
   at Realms.Tests.Database.NotificationTests.KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions()