public void GetObjectTest() { using var f = new ShellFolder(testFld); using var i = new ShellItem(testFile); var qi = f.GetChildrenUIObjects <IQueryInfo>(null, i); Assert.That(qi, Is.Not.Null.And.InstanceOf <IQueryInfo>()); System.Runtime.InteropServices.Marshal.ReleaseComObject(qi); var sv = f.GetViewObject <IShellView>(null); Assert.That(sv, Is.Not.Null.And.InstanceOf <IShellView>()); Assert.That(() => f.GetChildrenUIObjects <IShellLibrary>(null, i), Throws.TypeOf <NotImplementedException>()); Assert.That(() => f.GetViewObject <IShellLibrary>(null), Throws.TypeOf <NotImplementedException>()); }