Skip to content

Commit 9656d34

Browse files
committed
Fix DFF round-trip test to use ID3v2 builder
The MinimalFile_PreservesStructure test was using CreateWithMetadata (DITI/DIAR native chunks) but asserting on Id3v2Tag. Since DFF Render() only writes ID3v2 tags, use CreateWithId3v2 for proper round-trip testing.
1 parent 91461f5 commit 9656d34

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/TagLibSharp2.Tests/Dff/DffFileRoundTripTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public class DffFileRoundTripTests
1717
[TestMethod]
1818
public void MinimalFile_PreservesStructure ()
1919
{
20-
// Arrange
21-
var original = TestBuilders.Dff.CreateWithMetadata (title: "Test Title", artist: "Test Artist");
20+
// Arrange - use CreateWithId3v2 since Render() only preserves ID3v2 tags
21+
var original = TestBuilders.Dff.CreateWithId3v2 (title: "Test Title", artist: "Test Artist");
2222

2323
// Act
2424
var result1 = DffFile.Read (original);

0 commit comments

Comments
 (0)