tests: add test for file source constructor with id

This commit is contained in:
Stevan Freeborn
2025-07-14 23:30:02 -05:00
parent 1f83899eb8
commit 723476b18f
@@ -32,6 +32,17 @@ public class FileSourceTests : SerializationTest
result.Type.Should().Be(type); result.Type.Should().Be(type);
} }
[Fact]
public void Constructor_WhenCalledWithId_ItShouldInitializeProperties()
{
var id = "id";
var result = new FileSource(id);
result.Id.Should().Be(id);
result.Type.Should().Be("file");
}
[Fact] [Fact]
public void JsonSerialization_WhenSerialized_ItShouldHaveExpectedShape() public void JsonSerialization_WhenSerialized_ItShouldHaveExpectedShape()
{ {