Skip to content

Commit

Permalink
add node check to prove that it's null before
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Oct 7, 2024
1 parent 0063f05 commit 74e5b2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SIL.Harmony.Tests/DataModelSimpleChanges.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public async Task ChangesToSnapshotsAreNotSaved()
await WriteNextChange(SetWord(_entity1Id, "test-value"));
var word = await DataModel.GetLatest<Word>(_entity1Id);
word!.Text.Should().Be("test-value");
word.Note.Should().BeNull();

//change made outside the model, should not be saved when writing the next change
word.Note = "a note";
Expand Down

0 comments on commit 74e5b2e

Please sign in to comment.