Completed work on unit test separation. All projects build.

pull/60/head
David Hall 2019-03-16 16:11:06 -06:00
parent 1a7a555de1
commit 8560a43662
50 changed files with 1125 additions and 466 deletions

View File

@ -1,21 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\NUnit.3.11.0\build\NUnit.props" Condition="Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" />
<Project ToolsVersion="16.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{8EDF4429-251A-416D-BB68-93F227191BCF}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Vanara</RootNamespace>
<AssemblyName>UnitTests</AssemblyName>
<RootNamespace>Vanara.Tests</RootNamespace>
<AssemblyName>UnitTest.Core</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<TestProjectType>UnitTest</TestProjectType>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@ -26,8 +20,6 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -36,28 +28,15 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
<HintPath>..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
<Reference Include="System.Data" />
<Reference Include="System.DirectoryServices" />
<Reference Include="System.Drawing" />
<Reference Include="System.IO.Compression.FileSystem" />
<Reference Include="System.Numerics" />
<Reference Include="System.ServiceProcess" />
<Reference Include="System.ValueTuple, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.5.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml.Linq" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\PInvoke\Shared\WinDef\RECT.cs">
<Link>RECT.cs</Link>
</Compile>
<Compile Include="Collections\EventedListTests.cs" />
<Compile Include="Collections\HashSet2.0Tests.cs" />
<Compile Include="Collections\HierarchyTests.cs" />
@ -78,8 +57,6 @@
<Compile Include="InteropServices\SafeCoTaskMemStringTests.cs" />
<Compile Include="InteropServices\SafeHGlobalHandleTests.cs" />
<Compile Include="InteropServices\StrPtrTests.cs" />
<None Include="app.config" />
<None Include="packages.config" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
@ -87,138 +64,16 @@
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\AclUI\Vanara.PInvoke.AclUI.csproj">
<Project>{ef88cf8c-e737-4bb1-bbf9-f47bf65547e0}</Project>
<Name>Vanara.PInvoke.AclUI</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\BITS\Vanara.PInvoke.BITS.csproj">
<Project>{ef53ed51-c141-4525-a6b7-41109ee5f416}</Project>
<Name>Vanara.PInvoke.BITS</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\ComCtl32\Vanara.PInvoke.ComCtl32.csproj">
<Project>{291af9b0-51e8-4e4a-972b-77310a7a0c06}</Project>
<Name>Vanara.PInvoke.ComCtl32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\CredUI\Vanara.PInvoke.CredUI.csproj">
<Project>{1f0b972a-06da-4f6a-8b60-87d76fb1f2d9}</Project>
<Name>Vanara.PInvoke.CredUI</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Cryptography\Vanara.PInvoke.Cryptography.csproj">
<Project>{b0df2976-be60-4856-a634-5487222360b2}</Project>
<Name>Vanara.PInvoke.Cryptography</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\DwmApi\Vanara.PInvoke.DwmApi.csproj">
<Project>{e1c6d6af-60a0-42cd-af77-f0de0ffe1395}</Project>
<Name>Vanara.PInvoke.DwmApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Gdi32\Vanara.PInvoke.Gdi32.csproj">
<Project>{e186aff0-bc70-4776-8bee-9fdae108f4eb}</Project>
<Name>Vanara.PInvoke.Gdi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\IpHlpApi\Vanara.PInvoke.IpHlpApi.csproj">
<Project>{bbd8ce8d-31d2-4dfb-8d96-46825c09c7f1}</Project>
<Name>Vanara.PInvoke.IpHlpApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Mpr\Vanara.PInvoke.Mpr.csproj">
<Project>{e91c263f-82d9-40a9-99a1-f879cb076bce}</Project>
<Name>Vanara.PInvoke.Mpr</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\NetApi32\Vanara.PInvoke.NetApi32.csproj">
<Project>{48ed1b1b-1450-43d2-917e-b5ace357fd82}</Project>
<Name>Vanara.PInvoke.NetApi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\NetListMgr\Vanara.PInvoke.NetListMgr.csproj">
<Project>{d7575cdb-0aa6-4029-a8fa-64b49dc178ce}</Project>
<Name>Vanara.PInvoke.NetListMgr</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\NtDll\Vanara.PInvoke.NtDll.csproj">
<Project>{9e0c0dc0-e1b6-42a7-bd31-9a62eeada780}</Project>
<Name>Vanara.PInvoke.NtDll</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\NTDSApi\Vanara.PInvoke.NTDSApi.csproj">
<Project>{ff26f707-5f0e-461b-bcc9-013724f87bd4}</Project>
<Name>Vanara.PInvoke.NTDSApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Ole\Vanara.PInvoke.Ole.csproj">
<Project>{bbe4a7d6-0b24-4f58-9726-e05f358c1256}</Project>
<Name>Vanara.PInvoke.Ole</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\PowrProf\Vanara.PInvoke.PowrProf.csproj">
<Project>{c3622793-7925-46c7-b876-af23cc3c8a90}</Project>
<Name>Vanara.PInvoke.PowrProf</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Security\Vanara.PInvoke.Security.csproj">
<Project>{392a14b0-1e10-4e88-9c13-0d965665ffb5}</Project>
<Name>Vanara.PInvoke.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shell32\Vanara.PInvoke.Shell32.csproj">
<Project>{3226020f-4c9d-41b3-ac8a-2bc9fd064cd8}</Project>
<Name>Vanara.PInvoke.Shell32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\ShlwApi\Vanara.PInvoke.ShlwApi.csproj">
<Project>{30fd6779-6549-449e-880a-695815eb89b0}</Project>
<Name>Vanara.PInvoke.ShlwApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\TaskSchd\Vanara.PInvoke.TaskSchd.csproj">
<Project>{ac7d45c6-3c00-4fbf-90be-1a026fb26df0}</Project>
<Name>Vanara.PInvoke.TaskSchd</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\User32.Gdi\Vanara.PInvoke.User32.Gdi.csproj">
<Project>{fc7b25b5-3bb9-44f5-93d9-9ab7193b1be9}</Project>
<Name>Vanara.PInvoke.User32.Gdi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\User32\Vanara.PInvoke.User32.csproj">
<Project>{a6771907-addc-49fc-8444-a97aa65e77e2}</Project>
<Name>Vanara.PInvoke.User32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\UxTheme\Vanara.PInvoke.UxTheme.csproj">
<Project>{f73a658b-d900-4d9b-ba8e-19e6dfdc6147}</Project>
<Name>Vanara.PInvoke.UxTheme</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\VirtDisk\Vanara.PInvoke.VirtDisk.csproj">
<Project>{5ce784d4-42b7-4aa7-b2d0-e175c7fb40c8}</Project>
<Name>Vanara.PInvoke.VirtDisk</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\WinInet\Vanara.PInvoke.WinINet.csproj">
<Project>{e8a0c4df-541c-4435-937b-2865cd61bb17}</Project>
<Name>Vanara.PInvoke.WinINet</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Ws2_32\Vanara.PInvoke.Ws2_32.csproj">
<Project>{74d00c4c-da94-4046-b3cd-318fecde3794}</Project>
<Name>Vanara.PInvoke.Ws2_32</Name>
</ProjectReference>
<ProjectReference Include="..\..\Security\Vanara.Security.csproj">
<Project>{b1af8b23-b1cb-4cdb-9345-5e0c0e836b7c}</Project>
<Name>Vanara.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\System\Vanara.SystemServices.csproj">
<Project>{eeec146d-14b2-4eef-9155-e1aef82d85f6}</Project>
<Name>Vanara.SystemServices</Name>
</ProjectReference>
<ProjectReference Include="..\..\Windows.Forms\Vanara.Windows.Forms.csproj">
<Project>{51986cd3-eeda-4369-93a4-255512548f68}</Project>
<Name>Vanara.Windows.Forms</Name>
</ProjectReference>
<ProjectReference Include="..\..\Windows.Shell\Vanara.Windows.Shell.csproj">
<Project>{43685be2-a65e-4b01-be16-479526940f23}</Project>
<Name>Vanara.Windows.Shell</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
<Version>3.11.0</Version>
</PackageReference>
<PackageReference Include="NUnit3TestAdapter">
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\NUnit.3.11.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnit.3.11.0\build\NUnit.props'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">

View File

@ -70,7 +70,7 @@ namespace Vanara.InteropServices.Tests
Assert.That(() => ms.Poke(ba, -1), Throws.TypeOf<ArgumentOutOfRangeException>());
ms.Poke(ba, 1);
Assert.That(ms.Read<int>(), Is.EqualTo(0x00000102));
Assert.That(() => ms.Read<Vanara.PInvoke.User32_Gdi.ICONINFO>(), Throws.TypeOf<ArgumentOutOfRangeException>());
Assert.That(() => ms.Read<ulong>(), Throws.TypeOf<ArgumentOutOfRangeException>());
}
}
@ -125,7 +125,7 @@ namespace Vanara.InteropServices.Tests
Assert.That(() => ms.Write(bytes, -1, 8), Throws.TypeOf<ArgumentOutOfRangeException>());
Assert.That(() => ms.Write(bytes, 1, -8), Throws.TypeOf<ArgumentOutOfRangeException>());
Assert.That(() => ms.Write(new byte[22]), Throws.ArgumentException);
Assert.That(() => ms.Write(new Vanara.PInvoke.User32_Gdi.ICONINFO()), Throws.ArgumentException);
Assert.That(() => ms.Write(0L), Throws.ArgumentException);
ms.Write((SafeHGlobalHandle) null);
Assert.That(ms.Position, Is.Zero);
ms.Write((string[]) null);

View File

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Runtime" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Diagnostics.Tracing" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Reflection" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Security.Cryptography.X509Certificates" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Win32.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.InteropServices" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.Extensions" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.2.0" newVersion="4.1.2.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.IO.Compression" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup></configuration>

View File

@ -1,5 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="NUnit" version="3.11.0" targetFramework="net45" />
<package id="System.ValueTuple" version="4.5.0" targetFramework="net45" />
</packages>

View File

@ -7,10 +7,11 @@
<ProjectGuid>{81A79BCD-C322-4742-842E-F70344FAD01D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AclUI</RootNamespace>
<AssemblyName>AclUI</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.AclUI</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\AclUI\Vanara.PInvoke.AclUI.csproj">
<Project>{ef88cf8c-e737-4bb1-bbf9-f47bf65547e0}</Project>
<Name>Vanara.PInvoke.AclUI</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{7D799541-C923-4593-A8C0-ABFA4F44AD3F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>BITS</RootNamespace>
<AssemblyName>BITS</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.BITS</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@ -7,10 +7,11 @@
<ProjectGuid>{7A7D9AC3-B371-478B-95B3-B538CB903231}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Cabinet</RootNamespace>
<AssemblyName>Cabinet</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Cabinet</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@ -7,10 +7,11 @@
<ProjectGuid>{FC54780C-E523-450E-BC74-1F900A652A2C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ComCtl32</RootNamespace>
<AssemblyName>ComCtl32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.ComCtl32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\ComCtl32\Vanara.PInvoke.ComCtl32.csproj">
<Project>{291af9b0-51e8-4e4a-972b-77310a7a0c06}</Project>
<Name>Vanara.PInvoke.ComCtl32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{D26F23F2-35E8-4253-BCEF-56F113C93B02}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CredUI</RootNamespace>
<AssemblyName>CredUI</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.CredUI</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\CredUI\Vanara.PInvoke.CredUI.csproj">
<Project>{1f0b972a-06da-4f6a-8b60-87d76fb1f2d9}</Project>
<Name>Vanara.PInvoke.CredUI</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{D2F143F6-25E8-4B00-A260-B3E3AA46960F}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Cryptography</RootNamespace>
<AssemblyName>Cryptography</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Cryptography</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,24 @@
<ItemGroup>
<Compile Include="BCryptTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Cryptography\Vanara.PInvoke.Cryptography.csproj">
<Project>{b0df2976-be60-4856-a634-5487222360b2}</Project>
<Name>Vanara.PInvoke.Cryptography</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{495E0181-1513-423C-8056-A5EE400FA066}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DwmApi</RootNamespace>
<AssemblyName>DwmApi</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.DwmApi</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,6 +32,8 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<Compile Include="DwmApiTests.cs" />
@ -43,6 +46,24 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\DwmApi\Vanara.PInvoke.DwmApi.csproj">
<Project>{e1c6d6af-60a0-42cd-af77-f0de0ffe1395}</Project>
<Name>Vanara.PInvoke.DwmApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Gdi32\Vanara.PInvoke.Gdi32.csproj">
<Project>{E186AFF0-BC70-4776-8BEE-9FDAE108F4EB}</Project>
<Name>Vanara.PInvoke.Gdi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{A1A941E2-CF51-4582-B8B3-5CBC8905CA8D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Gdi32</RootNamespace>
<AssemblyName>Gdi32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Gdi32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,6 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Drawing" />
</ItemGroup>
<ItemGroup>
<Compile Include="Gdi32Tests.cs" />
@ -43,6 +45,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Gdi32\Vanara.PInvoke.Gdi32.csproj">
<Project>{e186aff0-bc70-4776-8bee-9fdae108f4eb}</Project>
<Name>Vanara.PInvoke.Gdi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{FB4E72CC-FF45-4A75-84FB-D220E0C06698}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>IpHlpApi</RootNamespace>
<AssemblyName>IpHlpApi</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.IpHlpApi</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,24 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\IpHlpApi\Vanara.PInvoke.IpHlpApi.csproj">
<Project>{bbd8ce8d-31d2-4dfb-8d96-46825c09c7f1}</Project>
<Name>Vanara.PInvoke.IpHlpApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Ws2_32\Vanara.PInvoke.Ws2_32.csproj">
<Project>{74D00C4C-DA94-4046-B3CD-318FECDE3794}</Project>
<Name>Vanara.PInvoke.Ws2_32</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{EF6CA228-59F6-495B-8F59-372690E68650}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Kernel32</RootNamespace>
<AssemblyName>Kernel32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Kernel32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -46,6 +47,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,8 +7,6 @@ using System.Threading.Tasks;
using Vanara.Extensions;
using Vanara.InteropServices;
using static Vanara.PInvoke.Kernel32;
using static Vanara.PInvoke.Macros;
using static Vanara.PInvoke.User32_Gdi;
namespace Vanara.PInvoke.Tests
{
@ -18,6 +16,7 @@ namespace Vanara.PInvoke.Tests
internal const string badlibfn = @"C:\Windows\System32\ole3.dll";
internal const string libfn = @"ole32.dll";
internal const string tmpstr = @"Temporary";
internal const string fn = @"C:\Temp\help.ico";
public static string CreateTempFile(bool markAsTemp = true)
{
@ -156,10 +155,7 @@ namespace Vanara.PInvoke.Tests
var l = EnumResourceNamesEx(hLib, ResourceType.RT_STRING);
Assert.That(l.Count, Is.GreaterThan(0));
foreach (var resourceName in l)
{
LoadString(hLib, resourceName, out var sptr, 0);
TestContext.WriteLine($"{resourceName} = {StringHelper.GetString(sptr)}");
}
Assert.That(resourceName.ToString(), Has.Length.GreaterThan(0));
}
}
@ -221,7 +217,7 @@ namespace Vanara.PInvoke.Tests
[Test]
public void GetCompressedFileSizeTest()
{
var err = GetCompressedFileSize(AdvApi32Tests.fn, out ulong sz);
var err = GetCompressedFileSize(fn, out ulong sz);
if (err.Failed)
TestContext.WriteLine(err);
Assert.That(sz, Is.GreaterThan(0));

View File

@ -7,10 +7,11 @@
<ProjectGuid>{A300ACD4-2E77-4649-B773-2DD55CDB9573}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Mpr</RootNamespace>
<AssemblyName>Mpr</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Mpr</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Mpr\Vanara.PInvoke.Mpr.csproj">
<Project>{e91c263f-82d9-40a9-99a1-f879cb076bce}</Project>
<Name>Vanara.PInvoke.Mpr</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{D7E06BE2-1BAC-4016-8228-FAA091ED4831}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NTDSApi</RootNamespace>
<AssemblyName>NTDSApi</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.NTDSApi</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,6 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.DirectoryServices" />
</ItemGroup>
<ItemGroup>
<Compile Include="NTDSApiTests.cs" />
@ -43,6 +45,24 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\NetApi32\Vanara.PInvoke.NetApi32.csproj">
<Project>{48ed1b1b-1450-43d2-917e-b5ace357fd82}</Project>
<Name>Vanara.PInvoke.NetApi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\NTDSApi\Vanara.PInvoke.NTDSApi.csproj">
<Project>{ff26f707-5f0e-461b-bcc9-013724f87bd4}</Project>
<Name>Vanara.PInvoke.NTDSApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,6 +1,7 @@
using NUnit.Framework;
using System;
using System.DirectoryServices;
using System.IO;
using System.Linq;
using System.Text;
using static Vanara.PInvoke.NTDSApi;
@ -13,6 +14,27 @@ namespace Vanara.PInvoke.Tests
public SafeDsHandle hDs;
public string dn;
internal static object[] AuthCasesFromFile
{
get
{
const string authfn = @"C:\Temp\AuthTestCases.txt";
var lines = File.ReadAllLines(authfn).Skip(1).Where(s => !string.IsNullOrWhiteSpace(s)).ToArray();
var ret = new object[lines.Length];
for (var i = 0; i < lines.Length; i++)
{
var items = lines[i].Split('\t').Select(s => s == string.Empty ? null : s).Cast<object>().ToArray();
if (items.Length < 9) continue;
bool.TryParse(items[0].ToString(), out var validUser);
items[0] = validUser;
bool.TryParse(items[1].ToString(), out var validCred);
items[1] = validCred;
ret[i] = items;
}
return ret;
}
}
[OneTimeSetUp]
public void Setup()
{
@ -20,7 +42,7 @@ namespace Vanara.PInvoke.Tests
DsBind(null, dn, out hDs).ThrowIfFailed();
}
[Test, TestCaseSource(typeof(AdvApi32Tests), nameof(AdvApi32Tests.AuthCasesFromFile))]
[Test, TestCaseSource(typeof(NTDSApiTests), nameof(NTDSApiTests.AuthCasesFromFile))]
public void DsBindTest(bool validUser, bool validCred, string urn, string dn, string dcn, string domain, string un, string pwd, string notes)
{
Assert.That(DsBind(dcn, dn, out var dsb).Succeeded && !dsb.IsInvalid, Is.EqualTo(validUser));
@ -28,7 +50,7 @@ namespace Vanara.PInvoke.Tests
Assert.That(DsBind(null, dn, out var dsb2).Succeeded && !dsb2.IsInvalid, Is.EqualTo(validUser));
}
[Test, TestCaseSource(typeof(AdvApi32Tests), nameof(AdvApi32Tests.AuthCasesFromFile))]
[Test, TestCaseSource(typeof(NTDSApiTests), nameof(NTDSApiTests.AuthCasesFromFile))]
public void DsBindByInstanceTest(bool validUser, bool validCred, string urn, string dn, string dcn, string domain, string un, string pwd, string notes)
{
Assert.That(DsBindByInstance(DnsDomainName: dn, AuthIdentity: SafeAuthIdentityHandle.LocalThreadIdentity, phDS: out var dsb).Succeeded && !dsb.IsInvalid, Is.EqualTo(validUser));
@ -40,7 +62,7 @@ namespace Vanara.PInvoke.Tests
Assert.That(DsBindToISTG(null, out var dsb).Succeeded && !dsb.IsInvalid, Is.True);
}
[Test, TestCaseSource(typeof(AdvApi32Tests), nameof(AdvApi32Tests.AuthCasesFromFile))]
[Test, TestCaseSource(typeof(NTDSApiTests), nameof(NTDSApiTests.AuthCasesFromFile))]
public void DsBindWithCredTest(bool validUser, bool validCred, string urn, string dn, string dcn, string domain, string un, string pwd, string notes)
{
void Meth()
@ -54,7 +76,7 @@ namespace Vanara.PInvoke.Tests
Assert.That(Meth, Throws.Nothing);
}
[Test, TestCaseSource(typeof(AdvApi32Tests), nameof(AdvApi32Tests.AuthCasesFromFile))]
[Test, TestCaseSource(typeof(NTDSApiTests), nameof(NTDSApiTests.AuthCasesFromFile))]
public void DsCrackNamesTest(bool validUser, bool validCred, string urn, string dn, string dc, string domain, string un, string pwd, string notes)
{
var res = DsCrackNames(hDs, new[] {un}, DS_NAME_FORMAT.DS_NT4_ACCOUNT_NAME);

View File

@ -7,10 +7,11 @@
<ProjectGuid>{2043D4AA-5286-491F-A334-A3CC7A08DB56}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NetApi32</RootNamespace>
<AssemblyName>NetApi32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.NetApi32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -42,6 +43,31 @@
<PackageReference Include="NUnit3TestAdapter">
<Version>3.13.0</Version>
</PackageReference>
<PackageReference Include="System.ValueTuple">
<Version>4.5.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\NetApi32\Vanara.PInvoke.NetApi32.csproj">
<Project>{48ed1b1b-1450-43d2-917e-b5ace357fd82}</Project>
<Name>Vanara.PInvoke.NetApi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Security\Vanara.PInvoke.Security.csproj">
<Project>{392a14b0-1e10-4e88-9c13-0d965665ffb5}</Project>
<Name>Vanara.PInvoke.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Ws2_32\Vanara.PInvoke.Ws2_32.csproj">
<Project>{74d00c4c-da94-4046-b3cd-318fecde3794}</Project>
<Name>Vanara.PInvoke.Ws2_32</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

View File

@ -1,6 +1,8 @@
using NUnit.Framework;
using System;
using System.Linq;
using System.Security.Principal;
using Vanara.Extensions;
using Vanara.InteropServices;
using static Vanara.PInvoke.NetApi32;
@ -178,4 +180,16 @@ namespace Vanara.PInvoke.Tests
}
}
public static class UtilExt
{
public static byte[] GetBytes(this SecurityIdentifier si)
{
if (si == null) return new byte[0];
var sidLen = si.BinaryLength;
var bytes = new byte[sidLen];
si.GetBinaryForm(bytes, 0);
return bytes;
}
}
}

View File

@ -7,10 +7,11 @@
<ProjectGuid>{969234E4-6C92-4DAD-9AB9-25E618906643}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NetListMgr</RootNamespace>
<AssemblyName>NetListMgr</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.NetListMgr</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\NetListMgr\Vanara.PInvoke.NetListMgr.csproj">
<Project>{d7575cdb-0aa6-4029-a8fa-64b49dc178ce}</Project>
<Name>Vanara.PInvoke.NetListMgr</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{6DD8BB87-AFBB-4E20-87CA-82967D01EF2D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NtDll</RootNamespace>
<AssemblyName>NtDll</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.NtDll</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\NtDll\Vanara.PInvoke.NtDll.csproj">
<Project>{9e0c0dc0-e1b6-42a7-bd31-9a62eeada780}</Project>
<Name>Vanara.PInvoke.NtDll</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{BB78D331-8903-40CE-90C4-B0E77D7B20FB}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Ole</RootNamespace>
<AssemblyName>Ole</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Ole</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -46,6 +47,24 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Ole\Vanara.PInvoke.Ole.csproj">
<Project>{bbe4a7d6-0b24-4f58-9726-e05f358c1256}</Project>
<Name>Vanara.PInvoke.Ole</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\ShlwApi\Vanara.PInvoke.ShlwApi.csproj">
<Project>{30fd6779-6549-449e-880a-695815eb89b0}</Project>
<Name>Vanara.PInvoke.ShlwApi</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -9,7 +9,6 @@ using Vanara.InteropServices;
using static Vanara.PInvoke.Ole32;
using static Vanara.PInvoke.OleAut32;
using static Vanara.PInvoke.PropSys;
using static Vanara.PInvoke.Shell32;
using static Vanara.PInvoke.ShlwApi;
namespace Vanara.PInvoke.Tests
@ -212,7 +211,7 @@ namespace Vanara.PInvoke.Tests
Assert.That(new PROPVARIANT(new byte[] {255,1,15,0}).ToString(), Is.EqualTo("VT_UI1, VT_VECTOR=255,1,15,0"));
}
public void GetCF()
/*public void GetCF()
{
foreach (var f in Directory.EnumerateFiles(@"C:\Temp", "*.*", SearchOption.AllDirectories))
{
@ -234,7 +233,7 @@ namespace Vanara.PInvoke.Tests
{
}
}
}
}*/
private static object GetSampleData(VARTYPE vt)
{
@ -274,10 +273,10 @@ namespace Vanara.PInvoke.Tests
StgCreateStorageEx(Path.GetTempFileName(), STGM.STGM_DELETEONRELEASE | STGM.STGM_CREATE | STGM.STGM_DIRECT | STGM.STGM_READWRITE | STGM.STGM_SHARE_EXCLUSIVE, STGFMT.STGFMT_DOCFILE, 0, IntPtr.Zero, IntPtr.Zero, typeof(IStorage).GUID, out var iptr);
return (IStorage)iptr;
case VARTYPE.VT_STREAM:
SHCreateStreamOnFileEx(AdvApi32Tests.fn, STGM.STGM_READ | STGM.STGM_SHARE_EXCLUSIVE, 0, false, null, out var stm);
SHCreateStreamOnFileEx(@"C:\Temp\Help.ico", STGM.STGM_READ | STGM.STGM_SHARE_EXCLUSIVE, 0, false, null, out var stm);
return stm;
case VARTYPE.VT_UNKNOWN:
return new IShellLinkW();
return Activator.CreateInstance(Type.GetTypeFromProgID("ADODB.Error"));
case VARTYPE.VT_VECTOR | VARTYPE.VT_BSTR:
case VARTYPE.VT_VECTOR | VARTYPE.VT_LPSTR:
case VARTYPE.VT_VECTOR | VARTYPE.VT_LPWSTR:

View File

@ -7,10 +7,11 @@
<ProjectGuid>{BAD9E08F-4001-4294-804D-7421012DAA3D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PowrProf</RootNamespace>
<AssemblyName>PowrProf</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.PowrProf</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -35,6 +36,20 @@
<ItemGroup>
<Compile Include="PowrProf.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\PowrProf\Vanara.PInvoke.PowrProf.csproj">
<Project>{c3622793-7925-46c7-b876-af23cc3c8a90}</Project>
<Name>Vanara.PInvoke.PowrProf</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -9,7 +9,6 @@ using System.Text;
using System.Threading;
using Vanara.Extensions;
using Vanara.InteropServices;
using Vanara.Security.AccessControl;
using static Vanara.PInvoke.AdvApi32;
using static Vanara.PInvoke.Kernel32;
@ -262,7 +261,7 @@ namespace Vanara.PInvoke.Tests
//Assert.That(InitiateShutdown(null, "InitiateShutdown test", 60, ShutdownFlags.SHUTDOWN_RESTART | ShutdownFlags.SHUTDOWN_HYBRID,
// SystemShutDownReason.SHTDN_REASON_MAJOR_APPLICATION | SystemShutDownReason.SHTDN_REASON_MINOR_MAINTENANCE |
// SystemShutDownReason.SHTDN_REASON_FLAG_PLANNED), Is.EqualTo(Win32Error.ERROR_ACCESS_DENIED));
using (new PrivilegedCodeBlock(SystemPrivilege.Shutdown))
//using (new PrivilegedCodeBlock(SystemPrivilege.Shutdown))
{
var e = InitiateShutdown(null, "InitiateShutdown test", 60, ShutdownFlags.SHUTDOWN_RESTART | ShutdownFlags.SHUTDOWN_HYBRID,
SystemShutDownReason.SHTDN_REASON_MAJOR_APPLICATION | SystemShutDownReason.SHTDN_REASON_MINOR_MAINTENANCE |
@ -280,7 +279,7 @@ namespace Vanara.PInvoke.Tests
//Assert.That(InitiateSystemShutdownEx(null, "InitiateSystemShutdownEx test", 60, false, true,
// SystemShutDownReason.SHTDN_REASON_MAJOR_APPLICATION | SystemShutDownReason.SHTDN_REASON_MINOR_MAINTENANCE |
// SystemShutDownReason.SHTDN_REASON_FLAG_PLANNED), Is.False);
using (new PrivilegedCodeBlock(SystemPrivilege.Shutdown))
//using (new PrivilegedCodeBlock(SystemPrivilege.Shutdown))
{
var e = InitiateSystemShutdownEx(null, "InitiateSystemShutdownEx test", 60, false, true,
SystemShutDownReason.SHTDN_REASON_MAJOR_APPLICATION | SystemShutDownReason.SHTDN_REASON_MINOR_MAINTENANCE |

View File

@ -7,10 +7,11 @@
<ProjectGuid>{C580868E-D913-454C-BF9B-CAFE3BD28DF0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Security</RootNamespace>
<AssemblyName>Security</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Security</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,12 +32,31 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.ServiceProcess" />
</ItemGroup>
<ItemGroup>
<Compile Include="AdvApi32\AdvApi32Tests.cs" />
<Compile Include="AdvApi32\PSIDTests.cs" />
<Compile Include="Authz\AuthzTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Security\Vanara.PInvoke.Security.csproj">
<Project>{392a14b0-1e10-4e88-9c13-0d965665ffb5}</Project>
<Name>Vanara.PInvoke.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -2,11 +2,11 @@
using System.Collections.Generic;
using System.Diagnostics;
using NUnit.Framework;
using static Vanara.PInvoke.MSTask;
using Vanara.PInvoke.NetListMgr;
using static Vanara.PInvoke.Ole32;
using static Vanara.PInvoke.PropSys;
using static Vanara.PInvoke.Shell32;
//using static Vanara.PInvoke.MSTask;
//using Vanara.PInvoke.NetListMgr;
//using static Vanara.PInvoke.Ole32;
//using static Vanara.PInvoke.PropSys;
//using static Vanara.PInvoke.Shell32;
using Vanara.Extensions;
using Vanara.PInvoke;
using System.Runtime.InteropServices;
@ -55,7 +55,7 @@ namespace Vanara.Collections.Tests
{
return collection.Next(celt, out pvalues, out pceltfetched);
}
}*/
}
[Test]
public void ComEnumeratorTest1()
@ -88,18 +88,18 @@ namespace Vanara.Collections.Tests
[Test]
public void ComEnumeratorTest2()
{
/*// Test IEnumerable collection
var nlm = new INetworkListManager();
var en = nlm.GetNetworks(NLM_ENUM_NETWORK.NLM_ENUM_NETWORK_ALL);
// Test IEnumerable
var e = new IEnumFromNext<INetwork>((out INetwork p) => en.Next(1, out p, out var f).Succeeded && f == 1,
() => en.Reset());
foreach (var p in e)
{
Assert.IsInstanceOf<INetwork>(p);
TestContext.WriteLine(p.GetName());
}*/
//// Test IEnumerable collection
//var nlm = new INetworkListManager();
//var en = nlm.GetNetworks(NLM_ENUM_NETWORK.NLM_ENUM_NETWORK_ALL);
//
//// Test IEnumerable
//var e = new IEnumFromNext<INetwork>((out INetwork p) => en.Next(1, out p, out var f).Succeeded && f == 1,
// () => en.Reset());
//foreach (var p in e)
//{
// Assert.IsInstanceOf<INetwork>(p);
// TestContext.WriteLine(p.GetName());
//}
// Test IEnumerable collection
var nlm = new INetworkListManager();
@ -348,7 +348,7 @@ namespace Vanara.Collections.Tests
Assert.That(g.MoveNext(), Is.True);
g.Dispose();
Assert.That(g.MoveNext(), Is.False);
}
}*/
[Test]
public void ComEnumeratorTest10()

View File

@ -11,11 +11,12 @@ namespace Vanara.PInvoke.Tests
public void SetupOverlappedFunctionTest()
{
var fn = Path.GetTempFileName();
using (var hFile = Kernel32.CreateFile(fn, Kernel32.FileAccess.GENERIC_ALL, FileShare.ReadWrite, null, FileMode.OpenOrCreate, FileFlagsAndAttributes.FILE_ATTRIBUTE_NORMAL | FileFlagsAndAttributes.FILE_FLAG_OVERLAPPED))
using (var hFile = System.IO.File.Create(fn, 128, FileOptions.DeleteOnClose | FileOptions.Asynchronous))
{
var oar = SetupOverlappedFunction(hFile, ar => { }, 10);
var oar = SetupOverlappedFunction(hFile.Handle, ar => { }, 10);
Assert.That(oar.AsyncState, Is.EqualTo(10));
Assert.That(oar.Handle, Is.EqualTo((HFILE)hFile));
Assert.That(oar.Handle, Is.EqualTo((HFILE)hFile.Handle));
EvaluateOverlappedFunction(oar, true);
Assert.That(oar.IsCompleted, Is.True);

View File

@ -7,10 +7,11 @@
<ProjectGuid>{6F668E05-8141-48B8-9031-326C79745AF4}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Shared</RootNamespace>
<AssemblyName>Shared</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Shared</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,6 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Drawing" />
</ItemGroup>
<ItemGroup>
<Compile Include="Collections\ComEnumeratorTests.cs" />
@ -48,6 +50,16 @@
<Compile Include="WinNT\OBJECT_TYPE_LISTTests.cs" />
<Compile Include="WinUser\MacrosTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,5 +1,6 @@
using NUnit.Framework;
using System;
using System.Runtime.InteropServices;
using System.Threading;
using static Vanara.PInvoke.Shell32;
@ -56,9 +57,9 @@ namespace Vanara.PInvoke.Tests
idlg.SetOperation(SPACTION.SPACTION_FORMATTING);
idlg.SetMode(PDMODE.PDM_RUN);
idlg.UpdateProgress(0, 0, 0, 0, 0, 100);
var srcd = new Vanara.Windows.Shell.ShellFolder(KNOWNFOLDERID.FOLDERID_Documents);
var destd = new Vanara.Windows.Shell.ShellFolder(KNOWNFOLDERID.FOLDERID_Desktop);
idlg.UpdateLocations(srcd.IShellItem, destd.IShellItem);
var srcd = SHGetKnownFolderItem<IShellItem>(KNOWNFOLDERID.FOLDERID_Documents);
var destd = SHGetKnownFolderItem<IShellItem>(KNOWNFOLDERID.FOLDERID_Desktop);
idlg.UpdateLocations(srcd, destd);
var rnd = new Random();
for (uint i = 0; i < 100; i++)
{
@ -67,6 +68,8 @@ namespace Vanara.PInvoke.Tests
Thread.Sleep(rnd.Next(50, 250));
}
idlg.StopProgressDialog();
Marshal.FinalReleaseComObject(srcd);
Marshal.FinalReleaseComObject(destd);
}
}
}

View File

@ -7,10 +7,11 @@
<ProjectGuid>{40E5CA4E-527F-4F79-875D-2342D1136FDD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Shell32</RootNamespace>
<AssemblyName>Shell32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Shell32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -38,6 +39,20 @@
<Compile Include="Methods.cs" />
<Compile Include="ProgressDialogTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shell32\Vanara.PInvoke.Shell32.csproj">
<Project>{3226020f-4c9d-41b3-ac8a-2bc9fd064cd8}</Project>
<Name>Vanara.PInvoke.Shell32</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{AF867D8E-1C94-4D4C-962D-D155581B0C3B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ShlwApi</RootNamespace>
<AssemblyName>ShlwApi</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.ShlwApi</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>

View File

@ -7,10 +7,11 @@
<ProjectGuid>{85157400-A6FF-41E7-B650-4952ECBC28AD}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TaskSchd</RootNamespace>
<AssemblyName>TaskSchd</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.TaskSchd</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -35,6 +36,20 @@
<ItemGroup>
<Compile Include="TaskSchdTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\TaskSchd\Vanara.PInvoke.TaskSchd.csproj">
<Project>{ac7d45c6-3c00-4fbf-90be-1a026fb26df0}</Project>
<Name>Vanara.PInvoke.TaskSchd</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -11,6 +11,7 @@
<AssemblyName>User32.Gdi</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,6 +32,7 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Drawing" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
@ -40,6 +42,27 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="User32GdiTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Gdi32\Vanara.PInvoke.Gdi32.csproj">
<Project>{e186aff0-bc70-4776-8bee-9fdae108f4eb}</Project>
<Name>Vanara.PInvoke.Gdi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\User32.Gdi\Vanara.PInvoke.User32.Gdi.csproj">
<Project>{fc7b25b5-3bb9-44f5-93d9-9ab7193b1be9}</Project>
<Name>Vanara.PInvoke.User32.Gdi</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -0,0 +1,316 @@
using NUnit.Framework;
using System;
using System.Linq;
using System.Runtime.InteropServices;
using Vanara.InteropServices;
using static Vanara.PInvoke.Gdi32;
using static Vanara.PInvoke.User32_Gdi;
namespace Vanara.PInvoke.Tests
{
[TestFixture()]
public class User32Tests
{
[Test()]
public void CallNextHookExTest()
{
throw new NotImplementedException();
}
[Test()]
public void ChildWindowFromPointExTest()
{
throw new NotImplementedException();
}
[Test()]
public void DestroyIconTest()
{
throw new NotImplementedException();
}
[Test]
public void EnumDisplayDevicesTest()
{
var devNum = 0U;
var dd = DISPLAY_DEVICE.Default;
while (EnumDisplayDevices(null, devNum, ref dd, EDD.EDD_GET_DEVICE_INTERFACE_NAME))
{
TestContext.WriteLine($"Name: {dd.DeviceName} : {dd.DeviceString}; State: {dd.StateFlags}");
var dm = DEVMODE.Default;
var mode = 0U;
while (EnumDisplaySettings(dd.DeviceName, mode, ref dm))
{
TestContext.WriteLine($" {mode}) {dm.dmBitsPerPel},{dm.dmPelsWidth},{dm.dmPelsHeight},{dm.dmDisplayFlags},{dm.dmDisplayFrequency}");
mode++;
}
dm = DEVMODE.Default;
mode = 0U;
while (EnumDisplaySettingsEx(dd.DeviceName, mode, ref dm, EDS.EDS_ROTATEDMODE))
{
TestContext.WriteLine($" {mode}) {dm.dmBitsPerPel},{dm.dmPelsWidth},{dm.dmPelsHeight},{dm.dmDisplayFlags},{dm.dmDisplayFrequency},{dm.dmDisplayOrientation},{dm.dmPosition}");
mode++;
}
devNum++;
}
}
[Test]
public void DisplayConfigTest()
{
Assert.That(QueryDisplayConfig(QDC.QDC_ONLY_ACTIVE_PATHS, out var paths, out var modes, out var topId).Succeeded, Is.True);
foreach (var mode in modes.Where(m => m.infoType == DISPLAYCONFIG_MODE_INFO_TYPE.DISPLAYCONFIG_MODE_INFO_TYPE_TARGET))
{
Assert.That(() => DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_DEVICE_NAME>(mode.adapterId, mode.id, DISPLAYCONFIG_DEVICE_INFO_TYPE.DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME), Throws.Exception);
Assert.That(() => DisplayConfigGetDeviceInfo<RECT>(mode.adapterId, mode.id), Throws.Exception);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_DEVICE_NAME>(mode.adapterId, mode.id).monitorFriendlyDeviceName);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_ADAPTER_NAME>(mode.adapterId, mode.id).adapterDevicePath);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_BASE_TYPE>(mode.adapterId, mode.id).baseOutputTechnology);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION>(mode.adapterId, mode.id).value);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO>(mode.adapterId, mode.id).colorEncoding);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_SDR_WHITE_LEVEL>(mode.adapterId, mode.id).SDRWhiteLevel);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_PREFERRED_MODE>(mode.adapterId, mode.id).targetMode);
}
foreach (var path in paths.Where(p => p.targetInfo.targetAvailable))
{
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_SOURCE_DEVICE_NAME>(path.sourceInfo.adapterId, path.sourceInfo.id).viewGdiDeviceName);
}
}
[Test()]
public void GetActiveWindowTest()
{
var hwnd = GetActiveWindow();
Assert.That(hwnd.IsNull, Is.False);
}
[Test]
public void GetDisplayAutoRotationPreferencesTest()
{
Assert.That(GetDisplayAutoRotationPreferences(out var o));
Assert.That(o, Is.EqualTo(ORIENTATION_PREFERENCE.ORIENTATION_PREFERENCE_NONE));
}
[Test()]
public void GetWindowLongTest()
{
throw new NotImplementedException();
}
[Test()]
public void GetWindowLong32Test()
{
throw new NotImplementedException();
}
[Test()]
public void GetWindowLongPtrTest()
{
throw new NotImplementedException();
}
[Test()]
public void LockWorkStationTest()
{
throw new NotImplementedException();
}
[Test()]
public void RealGetWindowClassTest()
{
throw new NotImplementedException();
}
[Test()]
public void RegisterHotKeyTest()
{
throw new NotImplementedException();
}
[Test()]
public void RegisterWindowMessageTest()
{
throw new NotImplementedException();
}
[Test()]
public void ScreenToClientTest()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest1()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest2()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest3()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest4()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest5()
{
throw new NotImplementedException();
}
[Test()]
public void SetWindowLongTest()
{
throw new NotImplementedException();
}
[Test()]
public void SetWindowPosTest()
{
throw new NotImplementedException();
}
[Test()]
public void SetWindowTextTest()
{
throw new NotImplementedException();
}
[Test()]
public void ShutdownBlockReasonCreateTest()
{
throw new NotImplementedException();
}
[Test()]
public void ShutdownBlockReasonDestroyTest()
{
throw new NotImplementedException();
}
[Test()]
public void ShutdownBlockReasonQueryTest()
{
throw new NotImplementedException();
}
[Test()]
public void ShutdownBlockReasonQueryTest1()
{
throw new NotImplementedException();
}
[Test()]
public void UnhookWindowsHookExTest()
{
throw new NotImplementedException();
}
[Test()]
public void UnregisterHotKeyTest()
{
throw new NotImplementedException();
}
[Test()]
public void WindowFromPointTest()
{
throw new NotImplementedException();
}
[Test()]
public void ExitWindowsExTest()
{
throw new NotImplementedException();
}
[Test()]
public void DrawTextTest()
{
throw new NotImplementedException();
}
[Test()]
public void GetClientRectTest()
{
throw new NotImplementedException();
}
[Test()]
public void GetWindowRectTest()
{
throw new NotImplementedException();
}
[Test()]
public void InvalidateRectTest()
{
throw new NotImplementedException();
}
[Test()]
public void MapWindowPointsTest()
{
throw new NotImplementedException();
}
[Test()]
public void MapWindowPointsTest1()
{
throw new NotImplementedException();
}
[Test()]
public void MapWindowPointsTest2()
{
throw new NotImplementedException();
}
[Test()]
public void SendMessageTest6()
{
throw new NotImplementedException();
}
[Test()]
public void LoadImageTest()
{
throw new NotImplementedException();
}
[Test()]
public void LoadStringTest()
{
throw new NotImplementedException();
}
[Test()]
public void LoadStringTest1()
{
throw new NotImplementedException();
}
[Test()]
public void SetWindowsHookExTest()
{
throw new NotImplementedException();
}
}
}

View File

@ -7,10 +7,11 @@
<ProjectGuid>{60A80A72-67BD-4CC2-95DA-0F6D3553A221}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>User32</RootNamespace>
<AssemblyName>User32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.User32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,28 @@
<ItemGroup>
<Compile Include="User32Tests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\User32.Gdi\Vanara.PInvoke.User32.Gdi.csproj">
<Project>{fc7b25b5-3bb9-44f5-93d9-9ab7193b1be9}</Project>
<Name>Vanara.PInvoke.User32.Gdi</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\User32\Vanara.PInvoke.User32.csproj">
<Project>{a6771907-addc-49fc-8444-a97aa65e77e2}</Project>
<Name>Vanara.PInvoke.User32</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -3,7 +3,6 @@ using System;
using System.Linq;
using System.Runtime.InteropServices;
using Vanara.InteropServices;
using static Vanara.PInvoke.Gdi32;
using static Vanara.PInvoke.User32;
using static Vanara.PInvoke.User32_Gdi;
@ -30,68 +29,6 @@ namespace Vanara.PInvoke.Tests
throw new NotImplementedException();
}
[Test]
public void EnumDisplayDevicesTest()
{
var devNum = 0U;
var dd = DISPLAY_DEVICE.Default;
while (EnumDisplayDevices(null, devNum, ref dd, EDD.EDD_GET_DEVICE_INTERFACE_NAME))
{
TestContext.WriteLine($"Name: {dd.DeviceName} : {dd.DeviceString}; State: {dd.StateFlags}");
var dm = DEVMODE.Default;
var mode = 0U;
while (EnumDisplaySettings(dd.DeviceName, mode, ref dm))
{
TestContext.WriteLine($" {mode}) {dm.dmBitsPerPel},{dm.dmPelsWidth},{dm.dmPelsHeight},{dm.dmDisplayFlags},{dm.dmDisplayFrequency}");
mode++;
}
dm = DEVMODE.Default;
mode = 0U;
while (EnumDisplaySettingsEx(dd.DeviceName, mode, ref dm, EDS.EDS_ROTATEDMODE))
{
TestContext.WriteLine($" {mode}) {dm.dmBitsPerPel},{dm.dmPelsWidth},{dm.dmPelsHeight},{dm.dmDisplayFlags},{dm.dmDisplayFrequency},{dm.dmDisplayOrientation},{dm.dmPosition}");
mode++;
}
devNum++;
}
}
[Test]
public void DisplayConfigTest()
{
Assert.That(QueryDisplayConfig(QDC.QDC_ONLY_ACTIVE_PATHS, out var paths, out var modes, out var topId).Succeeded, Is.True);
foreach (var mode in modes.Where(m => m.infoType == DISPLAYCONFIG_MODE_INFO_TYPE.DISPLAYCONFIG_MODE_INFO_TYPE_TARGET))
{
Assert.That(() => DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_DEVICE_NAME>(mode.adapterId, mode.id, DISPLAYCONFIG_DEVICE_INFO_TYPE.DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME), Throws.Exception);
Assert.That(() => DisplayConfigGetDeviceInfo<RECT>(mode.adapterId, mode.id), Throws.Exception);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_DEVICE_NAME>(mode.adapterId, mode.id).monitorFriendlyDeviceName);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_ADAPTER_NAME>(mode.adapterId, mode.id).adapterDevicePath);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_BASE_TYPE>(mode.adapterId, mode.id).baseOutputTechnology);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION>(mode.adapterId, mode.id).value);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO>(mode.adapterId, mode.id).colorEncoding);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_SDR_WHITE_LEVEL>(mode.adapterId, mode.id).SDRWhiteLevel);
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_TARGET_PREFERRED_MODE>(mode.adapterId, mode.id).targetMode);
}
foreach (var path in paths.Where(p => p.targetInfo.targetAvailable))
{
TestContext.WriteLine(DisplayConfigGetDeviceInfo<DISPLAYCONFIG_SOURCE_DEVICE_NAME>(path.sourceInfo.adapterId, path.sourceInfo.id).viewGdiDeviceName);
}
}
[Test()]
public void GetActiveWindowTest()
{
var hwnd = GetActiveWindow();
Assert.That(hwnd.IsNull, Is.False);
}
[Test]
public void GetDisplayAutoRotationPreferencesTest()
{
Assert.That(GetDisplayAutoRotationPreferences(out var o));
Assert.That(o, Is.EqualTo(ORIENTATION_PREFERENCE.ORIENTATION_PREFERENCE_NONE));
}
[Test]
public void GetGestureConfigTest()
{

View File

@ -7,10 +7,11 @@
<ProjectGuid>{EFAFBD16-A9FB-4656-896D-AD434B778EF0}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>UxTheme</RootNamespace>
<AssemblyName>UxTheme</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.UxTheme</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,6 +32,8 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
@ -43,6 +46,36 @@
<ItemGroup>
<Compile Include="UxThemeTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Gdi32\Vanara.PInvoke.Gdi32.csproj">
<Project>{E186AFF0-BC70-4776-8BEE-9FDAE108F4EB}</Project>
<Name>Vanara.PInvoke.Gdi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\User32.Gdi\Vanara.PInvoke.User32.Gdi.csproj">
<Project>{fc7b25b5-3bb9-44f5-93d9-9ab7193b1be9}</Project>
<Name>Vanara.PInvoke.User32.Gdi</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\User32\Vanara.PInvoke.User32.csproj">
<Project>{a6771907-addc-49fc-8444-a97aa65e77e2}</Project>
<Name>Vanara.PInvoke.User32</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\UxTheme\Vanara.PInvoke.UxTheme.csproj">
<Project>{f73a658b-d900-4d9b-ba8e-19e6dfdc6147}</Project>
<Name>Vanara.PInvoke.UxTheme</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{6947F255-E176-409C-9788-9C02A68C9D3B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VirtDisk</RootNamespace>
<AssemblyName>VirtDisk</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.VirtDisk</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<ItemGroup>
<Compile Include="VirtDiskTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\VirtDisk\Vanara.PInvoke.VirtDisk.csproj">
<Project>{5ce784d4-42b7-4aa7-b2d0-e175c7fb40c8}</Project>
<Name>Vanara.PInvoke.VirtDisk</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{A4BF5AA2-4D73-4BE7-ABB4-3DC089CFA77A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>WinINet</RootNamespace>
<AssemblyName>WinINet</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.WinINet</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +44,20 @@
<ItemGroup>
<Compile Include="WinInetTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\WinInet\Vanara.PInvoke.WinINet.csproj">
<Project>{e8a0c4df-541c-4435-937b-2865cd61bb17}</Project>
<Name>Vanara.PInvoke.WinINet</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{15DC485D-B379-4087-97A7-981ADB4D48F9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Ws2_32</RootNamespace>
<AssemblyName>Ws2_32</AssemblyName>
<RootNamespace>Vanara.PInvoke.Tests</RootNamespace>
<AssemblyName>UnitTest.PInvoke.Ws2_32</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -40,6 +41,20 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\PInvoke\Ws2_32\Vanara.PInvoke.Ws2_32.csproj">
<Project>{74d00c4c-da94-4046-b3cd-318fecde3794}</Project>
<Name>Vanara.PInvoke.Ws2_32</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -7,10 +7,11 @@
<ProjectGuid>{31F68B09-2933-45A1-B86B-9F6D647ED2D9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Security</RootNamespace>
<AssemblyName>Security</AssemblyName>
<RootNamespace>Vanara.Security.Tests</RootNamespace>
<AssemblyName>UnitTest.Security</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -33,7 +34,7 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="TestClass.cs" />
<Compile Include="AccessControl\SystemSecurityTests.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
@ -43,6 +44,24 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Security\Vanara.PInvoke.Security.csproj">
<Project>{392a14b0-1e10-4e88-9c13-0d965665ffb5}</Project>
<Name>Vanara.PInvoke.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\Security\Vanara.Security.csproj">
<Project>{b1af8b23-b1cb-4cdb-9345-5e0c0e836b7c}</Project>
<Name>Vanara.Security</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,20 +0,0 @@
// NUnit 3 tests
// See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
namespace Security
{
[TestFixture]
public class TestClass
{
[Test]
public void TestMethod()
{
// TODO: Add your test code here
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
}
}
}

View File

@ -7,10 +7,11 @@
<ProjectGuid>{9AEC2C7E-09D3-41C7-BDA7-4A7BAAA3441E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>System</RootNamespace>
<AssemblyName>System</AssemblyName>
<RootNamespace>Vanara.System.Tests</RootNamespace>
<AssemblyName>UnitTest.System</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -33,7 +34,12 @@
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="TestClass.cs" />
<Compile Include="BackgroundCopyTests.cs" />
<Compile Include="ComputerTests.cs" />
<Compile Include="NetworkListTests.cs" />
<Compile Include="PowerTests.cs" />
<Compile Include="RegTests.cs" />
<Compile Include="VirtualDiskTests.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
@ -43,6 +49,60 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\BITS\Vanara.PInvoke.BITS.csproj">
<Project>{ef53ed51-c141-4525-a6b7-41109ee5f416}</Project>
<Name>Vanara.PInvoke.BITS</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\IpHlpApi\Vanara.PInvoke.IpHlpApi.csproj">
<Project>{bbd8ce8d-31d2-4dfb-8d96-46825c09c7f1}</Project>
<Name>Vanara.PInvoke.IpHlpApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Kernel32\Vanara.PInvoke.Kernel32.csproj">
<Project>{842d436f-598c-47d7-b5aa-12399f8ccfe9}</Project>
<Name>Vanara.PInvoke.Kernel32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Mpr\Vanara.PInvoke.Mpr.csproj">
<Project>{e91c263f-82d9-40a9-99a1-f879cb076bce}</Project>
<Name>Vanara.PInvoke.Mpr</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\NetListMgr\Vanara.PInvoke.NetListMgr.csproj">
<Project>{d7575cdb-0aa6-4029-a8fa-64b49dc178ce}</Project>
<Name>Vanara.PInvoke.NetListMgr</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\PowrProf\Vanara.PInvoke.PowrProf.csproj">
<Project>{c3622793-7925-46c7-b876-af23cc3c8a90}</Project>
<Name>Vanara.PInvoke.PowrProf</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Security\Vanara.PInvoke.Security.csproj">
<Project>{392a14b0-1e10-4e88-9c13-0d965665ffb5}</Project>
<Name>Vanara.PInvoke.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\ShlwApi\Vanara.PInvoke.ShlwApi.csproj">
<Project>{30fd6779-6549-449e-880a-695815eb89b0}</Project>
<Name>Vanara.PInvoke.ShlwApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\User32\Vanara.PInvoke.User32.csproj">
<Project>{a6771907-addc-49fc-8444-a97aa65e77e2}</Project>
<Name>Vanara.PInvoke.User32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\VirtDisk\Vanara.PInvoke.VirtDisk.csproj">
<Project>{5ce784d4-42b7-4aa7-b2d0-e175c7fb40c8}</Project>
<Name>Vanara.PInvoke.VirtDisk</Name>
</ProjectReference>
<ProjectReference Include="..\..\System\Vanara.SystemServices.csproj">
<Project>{eeec146d-14b2-4eef-9155-e1aef82d85f6}</Project>
<Name>Vanara.SystemServices</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,20 +0,0 @@
// NUnit 3 tests
// See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
namespace System
{
[TestFixture]
public class TestClass
{
[Test]
public void TestMethod()
{
// TODO: Add your test code here
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
}
}
}

View File

@ -1,20 +0,0 @@
// NUnit 3 tests
// See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
namespace Windows.Forms
{
[TestFixture]
public class TestClass
{
[Test]
public void TestMethod()
{
// TODO: Add your test code here
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
}
}
}

View File

@ -7,10 +7,11 @@
<ProjectGuid>{C1FFE607-1D85-49F8-9421-6B21AB778816}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Windows.Forms</RootNamespace>
<AssemblyName>Windows.Forms</AssemblyName>
<RootNamespace>Vanara.Windows.Forms.Tests</RootNamespace>
<AssemblyName>UnitTest.Windows.Forms</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,9 +32,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="TestClass.cs" />
<Reference Include="System.Configuration" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
@ -43,6 +45,78 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Dialogs\AccessControlEditorTests.cs" />
<Compile Include="Dialogs\CredentialsDialogTests.cs" />
<Compile Include="Dialogs\NetworkConnectionDialogTests.cs" />
<Compile Include="Dialogs\TaskDialogTests.cs" />
<None Include="ExplorerBrowserTests.cs" />
<Compile Include="Extensions\ImageListTests.cs" />
<Compile Include="ThemedControlTests.cs" />
<Compile Include="VisualThemeTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\AclUI\Vanara.PInvoke.AclUI.csproj">
<Project>{ef88cf8c-e737-4bb1-bbf9-f47bf65547e0}</Project>
<Name>Vanara.PInvoke.AclUI</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\ComCtl32\Vanara.PInvoke.ComCtl32.csproj">
<Project>{291af9b0-51e8-4e4a-972b-77310a7a0c06}</Project>
<Name>Vanara.PInvoke.ComCtl32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\CredUI\Vanara.PInvoke.CredUI.csproj">
<Project>{1f0b972a-06da-4f6a-8b60-87d76fb1f2d9}</Project>
<Name>Vanara.PInvoke.CredUI</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\DwmApi\Vanara.PInvoke.DwmApi.csproj">
<Project>{e1c6d6af-60a0-42cd-af77-f0de0ffe1395}</Project>
<Name>Vanara.PInvoke.DwmApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Gdi32\Vanara.PInvoke.Gdi32.csproj">
<Project>{e186aff0-bc70-4776-8bee-9fdae108f4eb}</Project>
<Name>Vanara.PInvoke.Gdi32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Mpr\Vanara.PInvoke.Mpr.csproj">
<Project>{e91c263f-82d9-40a9-99a1-f879cb076bce}</Project>
<Name>Vanara.PInvoke.Mpr</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shell32\Vanara.PInvoke.Shell32.csproj">
<Project>{3226020f-4c9d-41b3-ac8a-2bc9fd064cd8}</Project>
<Name>Vanara.PInvoke.Shell32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\User32.Gdi\Vanara.PInvoke.User32.Gdi.csproj">
<Project>{fc7b25b5-3bb9-44f5-93d9-9ab7193b1be9}</Project>
<Name>Vanara.PInvoke.User32.Gdi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\User32\Vanara.PInvoke.User32.csproj">
<Project>{a6771907-addc-49fc-8444-a97aa65e77e2}</Project>
<Name>Vanara.PInvoke.User32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\UxTheme\Vanara.PInvoke.UxTheme.csproj">
<Project>{f73a658b-d900-4d9b-ba8e-19e6dfdc6147}</Project>
<Name>Vanara.PInvoke.UxTheme</Name>
</ProjectReference>
<ProjectReference Include="..\..\Security\Vanara.Security.csproj">
<Project>{b1af8b23-b1cb-4cdb-9345-5e0c0e836b7c}</Project>
<Name>Vanara.Security</Name>
</ProjectReference>
<ProjectReference Include="..\..\Windows.Forms\Vanara.Windows.Forms.csproj">
<Project>{51986cd3-eeda-4369-93a4-255512548f68}</Project>
<Name>Vanara.Windows.Forms</Name>
</ProjectReference>
<ProjectReference Include="..\..\Windows.Shell\Vanara.Windows.Shell.csproj">
<Project>{43685be2-a65e-4b01-be16-479526940f23}</Project>
<Name>Vanara.Windows.Shell</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

View File

@ -1,20 +0,0 @@
// NUnit 3 tests
// See documentation : https://github.com/nunit/docs/wiki/NUnit-Documentation
using System.Collections;
using System.Collections.Generic;
using NUnit.Framework;
namespace Windows.Shell
{
[TestFixture]
public class TestClass
{
[Test]
public void TestMethod()
{
// TODO: Add your test code here
var answer = 42;
Assert.That(answer, Is.EqualTo(42), "Some useful error message");
}
}
}

View File

@ -7,10 +7,11 @@
<ProjectGuid>{2616C074-DF6C-47D4-BE82-6768885ACAC9}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Windows.Shell</RootNamespace>
<AssemblyName>Windows.Shell</AssemblyName>
<RootNamespace>Vanara.Windows.Shell.Tests</RootNamespace>
<AssemblyName>UnitTest.Windows.Shell</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -31,9 +32,9 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
<ItemGroup>
<Compile Include="TestClass.cs" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
@ -43,6 +44,48 @@
<Version>3.13.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Compile Include="ControlPanelTests.cs" />
<Compile Include="ShellAssocTests.cs" />
<Compile Include="ShellFileOperationsTests.cs" />
<Compile Include="ShellFolderTests.cs" />
<Compile Include="ShellItemPropStoreTests.cs" />
<Compile Include="ShellItemTests.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Core\Vanara.Core.csproj">
<Project>{241f73ee-9298-45c9-b869-a045dff94c03}</Project>
<Name>Vanara.Core</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\ComCtl32\Vanara.PInvoke.ComCtl32.csproj">
<Project>{291af9b0-51e8-4e4a-972b-77310a7a0c06}</Project>
<Name>Vanara.PInvoke.ComCtl32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Ole\Vanara.PInvoke.Ole.csproj">
<Project>{bbe4a7d6-0b24-4f58-9726-e05f358c1256}</Project>
<Name>Vanara.PInvoke.Ole</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shared\Vanara.PInvoke.Shared.csproj">
<Project>{a5e519e9-feba-4fe3-93a5-b8269bef72f4}</Project>
<Name>Vanara.PInvoke.Shared</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\Shell32\Vanara.PInvoke.Shell32.csproj">
<Project>{3226020f-4c9d-41b3-ac8a-2bc9fd064cd8}</Project>
<Name>Vanara.PInvoke.Shell32</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\ShlwApi\Vanara.PInvoke.ShlwApi.csproj">
<Project>{30fd6779-6549-449e-880a-695815eb89b0}</Project>
<Name>Vanara.PInvoke.ShlwApi</Name>
</ProjectReference>
<ProjectReference Include="..\..\PInvoke\User32.Gdi\Vanara.PInvoke.User32.Gdi.csproj">
<Project>{fc7b25b5-3bb9-44f5-93d9-9ab7193b1be9}</Project>
<Name>Vanara.PInvoke.User32.Gdi</Name>
</ProjectReference>
<ProjectReference Include="..\..\Windows.Shell\Vanara.Windows.Shell.csproj">
<Project>{43685be2-a65e-4b01-be16-479526940f23}</Project>
<Name>Vanara.Windows.Shell</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.