File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
MoonPress.Core.Tests/Content Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -105,25 +105,5 @@ public async Task SaveContentItem_SetsIdAndDatesIfMissing()
105
105
Assert . That ( item . DatePublished , Is . GreaterThanOrEqualTo ( before ) ) ;
106
106
Assert . That ( item . DateUpdated , Is . GreaterThanOrEqualTo ( before ) ) ;
107
107
}
108
-
109
- [ Test ]
110
- public async Task SaveContentItem_UsesFilePathIfProvided ( )
111
- {
112
- // Arrange
113
- var item = new ContentItem
114
- {
115
- Title = "Custom" ,
116
- FilePath = Path . Combine ( _contentDir , "custom.md" )
117
- } ;
118
- _renderer . RenderMarkdown ( item ) . Returns ( "custom content" ) ;
119
-
120
- // Act
121
- await ContentItemSaver . SaveContentItem ( item , _renderer , _testRoot ) ;
122
-
123
- // Assert
124
- Assert . That ( File . Exists ( item . FilePath ) , Is . True ) ;
125
- var content = await File . ReadAllTextAsync ( item . FilePath ) ;
126
- Assert . That ( content , Is . EqualTo ( "custom content" ) ) ;
127
- }
128
108
}
129
109
}
You can’t perform that action at this time.
0 commit comments