Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.

Commit a171462

Browse files
committed
Added unit tests project
1 parent e479188 commit a171462

File tree

4 files changed

+126
-0
lines changed

4 files changed

+126
-0
lines changed

src/WinAPI.NET.sln

+11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ VisualStudioVersion = 12.0.30110.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinApiNet", "WinApiNet\WinApiNet.csproj", "{EEE3AA01-4751-48F8-8B0B-1E6A586FC2E6}"
77
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinApiNet.Tests", "WinApiNet.Tests\WinApiNet.Tests.csproj", "{9F19CD33-B3DD-422A-9DA3-27BCC8DF8CCE}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7D226D6E-EF65-479B-8960-F4BC413DCD01}"
11+
ProjectSection(SolutionItems) = preProject
12+
WinAPI.NET.ruleset = WinAPI.NET.ruleset
13+
EndProjectSection
14+
EndProject
815
Global
916
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1017
Debug|Any CPU = Debug|Any CPU
@@ -15,6 +22,10 @@ Global
1522
{EEE3AA01-4751-48F8-8B0B-1E6A586FC2E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
1623
{EEE3AA01-4751-48F8-8B0B-1E6A586FC2E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
1724
{EEE3AA01-4751-48F8-8B0B-1E6A586FC2E6}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{9F19CD33-B3DD-422A-9DA3-27BCC8DF8CCE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{9F19CD33-B3DD-422A-9DA3-27BCC8DF8CCE}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{9F19CD33-B3DD-422A-9DA3-27BCC8DF8CCE}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{9F19CD33-B3DD-422A-9DA3-27BCC8DF8CCE}.Release|Any CPU.Build.0 = Release|Any CPU
1829
EndGlobalSection
1930
GlobalSection(SolutionProperties) = preSolution
2031
HideSolutionNode = FALSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright file="AssemblyInfo.cs" company="WinAPI.NET">
3+
// Copyright (c) Marek Dzikiewicz, All Rights Reserved.
4+
// </copyright>
5+
// --------------------------------------------------------------------------------------------------------------------
6+
7+
using System.Reflection;
8+
using System.Runtime.InteropServices;
9+
10+
// General Information about an assembly is controlled through the following
11+
// set of attributes. Change these attribute values to modify the information
12+
// associated with an assembly.
13+
[assembly: AssemblyTitle("WinApiNet.Tests")]
14+
[assembly: AssemblyDescription("")]
15+
[assembly: AssemblyConfiguration("")]
16+
[assembly: AssemblyCompany("")]
17+
[assembly: AssemblyProduct("WinApiNet.Tests")]
18+
[assembly: AssemblyCopyright("Copyright © 2014")]
19+
[assembly: AssemblyTrademark("")]
20+
[assembly: AssemblyCulture("")]
21+
22+
// Setting ComVisible to false makes the types in this assembly not visible
23+
// to COM components. If you need to access a type in this assembly from
24+
// COM, set the ComVisible attribute to true on that type.
25+
[assembly: ComVisible(false)]
26+
27+
// The following GUID is for the ID of the typelib if this project is exposed to COM
28+
[assembly: Guid("8a619e3d-371f-40d8-a6e4-354ac9c084ce")]
29+
30+
// Version information for an assembly consists of the following four values:
31+
//
32+
// Major Version
33+
// Minor Version
34+
// Build Number
35+
// Revision
36+
//
37+
// You can specify all the values or you can default the Build and Revision Numbers
38+
// by using the '*' as shown below:
39+
// [assembly: AssemblyVersion("1.0.*")]
40+
[assembly: AssemblyVersion("1.0.0.0")]
41+
[assembly: AssemblyFileVersion("1.0.0.0")]

src/WinApiNet.Tests/Settings.StyleCop

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<StyleCopSettings Version="105">
2+
<GlobalSettings>
3+
<CollectionProperty Name="RecognizedWords">
4+
<Value>Autofac</Value>
5+
</CollectionProperty>
6+
</GlobalSettings>
7+
<Analyzers>
8+
<Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
9+
<Rules>
10+
<Rule Name="ElementsMustBeDocumented">
11+
<RuleSettings>
12+
<BooleanProperty Name="Enabled">False</BooleanProperty>
13+
</RuleSettings>
14+
</Rule>
15+
</Rules>
16+
<AnalyzerSettings />
17+
</Analyzer>
18+
</Analyzers>
19+
</StyleCopSettings>
+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{9F19CD33-B3DD-422A-9DA3-27BCC8DF8CCE}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>WinApiNet.Tests</RootNamespace>
11+
<AssemblyName>WinApiNet.Tests</AssemblyName>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
</PropertyGroup>
15+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16+
<DebugSymbols>true</DebugSymbols>
17+
<DebugType>full</DebugType>
18+
<Optimize>false</Optimize>
19+
<OutputPath>bin\Debug\</OutputPath>
20+
<DefineConstants>DEBUG;TRACE</DefineConstants>
21+
<ErrorReport>prompt</ErrorReport>
22+
<WarningLevel>4</WarningLevel>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<DebugType>pdbonly</DebugType>
26+
<Optimize>true</Optimize>
27+
<OutputPath>bin\Release\</OutputPath>
28+
<DefineConstants>TRACE</DefineConstants>
29+
<ErrorReport>prompt</ErrorReport>
30+
<WarningLevel>4</WarningLevel>
31+
</PropertyGroup>
32+
<ItemGroup>
33+
<Compile Include="Properties\AssemblyInfo.cs" />
34+
</ItemGroup>
35+
<ItemGroup>
36+
<Reference Include="nunit.framework">
37+
<HintPath>..\..\lib\nunit\nunit.framework.dll</HintPath>
38+
</Reference>
39+
<Reference Include="System" />
40+
</ItemGroup>
41+
<ItemGroup>
42+
<ProjectReference Include="..\WinApiNet\WinApiNet.csproj">
43+
<Project>{eee3aa01-4751-48f8-8b0b-1e6a586fc2e6}</Project>
44+
<Name>WinApiNet</Name>
45+
</ProjectReference>
46+
</ItemGroup>
47+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
48+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
49+
Other similar extension points exist, see Microsoft.Common.targets.
50+
<Target Name="BeforeBuild">
51+
</Target>
52+
<Target Name="AfterBuild">
53+
</Target>
54+
-->
55+
</Project>

0 commit comments

Comments
 (0)