Skip to content

Commit

Permalink
Test that PreviousSourceIds can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus committed Sep 7, 2021
1 parent 0233feb commit 6e6724b
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,18 @@ public void GettersAndSettersWork()
deserializedSnapshotMetadata.SnapshotName.Should().Be("thingy");
deserializedSnapshotMetadata.SnapshotVersion.Should().Be(84);
}

[Test]
public void PreviousSourceIdsIsAllowedToBeEmpty()
{
// Arrange
var snapshotMetadata = new SnapshotMetadata();

// Act
var previousSourceIds = snapshotMetadata.PreviousSourceIds;

// Assert
previousSourceIds.Should().BeEmpty();
}
}
}

0 comments on commit 6e6724b

Please sign in to comment.