Skip to content

Commit 806ca93

Browse files
committed
Acknowledged potential nullability of Load() in test cast
1 parent dc6b8ad commit 806ca93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Tests/TopicMappingServiceTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ public async Task Map_AlternateRelationship_ReturnsCorrectRelationship() {
680680
[Fact]
681681
public async Task Map_CustomCollection_ReturnsCollection() {
682682

683-
var topic = (ContentTypeDescriptor)_topicRepository.Load("Root:Configuration:ContentTypes:Page");
683+
var topic = (ContentTypeDescriptor?)_topicRepository.Load("Root:Configuration:ContentTypes:Page");
684684
var target = await _mappingService.MapAsync<ContentTypeDescriptorTopicViewModel>(topic).ConfigureAwait(false);
685685

686686
Assert.Equal<int?>(8, target?.AttributeDescriptors.Count);

0 commit comments

Comments
 (0)