2020-10-20 19:48:05 -04:00
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using Vanara.PInvoke.Tests;
|
|
|
|
|
using static Vanara.PInvoke.Shell32;
|
|
|
|
|
|
2023-03-31 11:47:53 -04:00
|
|
|
|
namespace Vanara.Windows.Shell.Tests;
|
|
|
|
|
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class ShelViewTests
|
2020-10-20 19:48:05 -04:00
|
|
|
|
{
|
2023-03-31 11:47:53 -04:00
|
|
|
|
//[Test]
|
|
|
|
|
public void CreateTest()
|
2020-10-20 19:48:05 -04:00
|
|
|
|
{
|
2023-03-31 11:47:53 -04:00
|
|
|
|
var form = new System.Windows.Forms.Form() { Size = new System.Drawing.Size(200, 200) };
|
|
|
|
|
var shvw = new ShellBrowser() { Dock = System.Windows.Forms.DockStyle.Fill };
|
|
|
|
|
shvw.BrowseObject(new ShellFolder(TestCaseSources.TempDir).PIDL.DangerousGetHandle(), SBSP.SBSP_ABSOLUTE);
|
|
|
|
|
form.Controls.Add(shvw);
|
|
|
|
|
form.ShowDialog();
|
2020-10-20 19:48:05 -04:00
|
|
|
|
}
|
|
|
|
|
}
|