Skip to content

Commit

Permalink
Fixed tests and merged main
Browse files Browse the repository at this point in the history
  • Loading branch information
papafe committed Mar 1, 2024
1 parent 4c0f746 commit 5f99655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Realm.Tests/Database/NotificationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,7 @@ public void KeyPath_WithInvalidExpressions_ThrowsException()
Throws.Exception.TypeOf<ArgumentException>().With.Message.EqualTo("The input expression is not a path to a property"));

Assert.That(() => KeyPath.For<TestNotificationObject>(null!),
Throws.Exception.TypeOf<ArgumentException>().With.Message.EqualTo("The input expression cannot be null"));
Throws.Exception.TypeOf<ArgumentException>().With.Message.EqualTo("The input expression cannot be null (Parameter 'expression')"));
}

[Test]
Expand Down Expand Up @@ -1755,7 +1755,7 @@ void AssertKeyPathsCollectionCorrectness(KeyPathsCollection k, IEnumerable<strin
public void KeyPathsCollection_WithInvalidExpressions_ThrowsExceptions()
{
Assert.That(() => KeyPathsCollection.Of<TestNotificationObject>(t => t.ListSameType, null!),
Throws.Exception.TypeOf<ArgumentException>().With.Message.EqualTo("The input expression cannot be null"));
Throws.Exception.TypeOf<ArgumentException>().With.Message.EqualTo("The input expression cannot be null (Parameter 'expression')"));

Assert.That(() => KeyPathsCollection.Of<TestNotificationObject>(t => t.Equals(this)),
Throws.Exception.TypeOf<ArgumentException>().With.Message.EqualTo("The input expression is not a path to a property"));
Expand Down

0 comments on commit 5f99655

Please sign in to comment.