tests: add test for file source constructor with id
This commit is contained in:
@@ -32,6 +32,17 @@ public class FileSourceTests : SerializationTest
|
||||
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]
|
||||
public void JsonSerialization_WhenSerialized_ItShouldHaveExpectedShape()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user