Skip to content

Commit c5545d8

Browse files
committed
Added test for CLSID property
1 parent c4e0066 commit c5545d8

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

sources/Test/OpenMcdf.Extensions.Test/OLEPropertiesExtensionsTest.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,5 +442,17 @@ public void Test_DOCUMENT_SUMMARY_INFO_ADD_CUSTOM()
442442
Assert.AreEqual(VTPropertyType.VT_FILETIME, propArray[4].VTType);
443443
}
444444
}
445+
446+
[TestMethod]
447+
public void Test_CLSID_PROPERTY()
448+
{
449+
var guid = new Guid("15891a95-bf6e-4409-b7d0-3a31c391fa31");
450+
using (CompoundFile cf = new CompoundFile("CLSIDPropertyTest.file"))
451+
{
452+
var co = cf.RootStorage.GetStream("\u0005C3teagxwOttdbfkuIaamtae3Ie").AsOLEPropertiesContainer();
453+
var clsidProp = co.Properties.First(x => x.PropertyName == "DocumentID");
454+
Assert.AreEqual(guid, clsidProp.Value);
455+
}
456+
}
445457
}
446458
}
240 KB
Binary file not shown.

0 commit comments

Comments
 (0)