Skip to content

Commit 26d42a7

Browse files
committed
Added unit test project
1 parent 7b6e24f commit 26d42a7

File tree

4 files changed

+159
-0
lines changed

4 files changed

+159
-0
lines changed

NoteHighlight2016.sln

+20
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenerateHighlightContent",
1313
EndProject
1414
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "SetupX86", "SetupX86\SetupX86.vdproj", "{610B97A7-752E-4501-8415-A40251735F85}"
1515
EndProject
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTesting", "UnitTesting\UnitTesting.csproj", "{3E05522E-BD98-4813-8430-83AE4F320EB2}"
17+
EndProject
1618
Global
1719
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1820
Debug|Any CPU = Debug|Any CPU
@@ -113,6 +115,24 @@ Global
113115
{610B97A7-752E-4501-8415-A40251735F85}.Release|x64.Build.0 = Release
114116
{610B97A7-752E-4501-8415-A40251735F85}.Release|x86.ActiveCfg = Release
115117
{610B97A7-752E-4501-8415-A40251735F85}.Release|x86.Build.0 = Release
118+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
119+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Debug|Any CPU.Build.0 = Debug|Any CPU
120+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Debug|x64.ActiveCfg = Debug|Any CPU
121+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Debug|x64.Build.0 = Debug|Any CPU
122+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Debug|x86.ActiveCfg = Debug|Any CPU
123+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Debug|x86.Build.0 = Debug|Any CPU
124+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.LocalDebug|Any CPU.ActiveCfg = Debug|Any CPU
125+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.LocalDebug|Any CPU.Build.0 = Debug|Any CPU
126+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.LocalDebug|x64.ActiveCfg = Debug|Any CPU
127+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.LocalDebug|x64.Build.0 = Debug|Any CPU
128+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.LocalDebug|x86.ActiveCfg = Debug|Any CPU
129+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.LocalDebug|x86.Build.0 = Debug|Any CPU
130+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Release|Any CPU.ActiveCfg = Release|Any CPU
131+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Release|Any CPU.Build.0 = Release|Any CPU
132+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Release|x64.ActiveCfg = Release|Any CPU
133+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Release|x64.Build.0 = Release|Any CPU
134+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Release|x86.ActiveCfg = Release|Any CPU
135+
{3E05522E-BD98-4813-8430-83AE4F320EB2}.Release|x86.Build.0 = Release|Any CPU
116136
EndGlobalSection
117137
GlobalSection(SolutionProperties) = preSolution
118138
HideSolutionNode = FALSE
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("UnitTesting")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("UnitTesting")]
13+
[assembly: AssemblyCopyright("Copyright © 2018")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("3e05522e-bd98-4813-8430-83ae4f320eb2")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]

UnitTesting/UnitTest1.cs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using System;
2+
using Microsoft.VisualStudio.TestTools.UnitTesting;
3+
4+
namespace UnitTesting
5+
{
6+
[TestClass]
7+
public class UnitTest1
8+
{
9+
[TestMethod]
10+
public void TestMethod1()
11+
{
12+
}
13+
}
14+
}

UnitTesting/UnitTesting.csproj

+89
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectGuid>{3E05522E-BD98-4813-8430-83AE4F320EB2}</ProjectGuid>
7+
<OutputType>Library</OutputType>
8+
<AppDesignerFolder>Properties</AppDesignerFolder>
9+
<RootNamespace>UnitTesting</RootNamespace>
10+
<AssemblyName>UnitTesting</AssemblyName>
11+
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
12+
<FileAlignment>512</FileAlignment>
13+
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
14+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
15+
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
16+
<ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
17+
<IsCodedUITest>False</IsCodedUITest>
18+
<TestProjectType>UnitTest</TestProjectType>
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<DebugType>full</DebugType>
23+
<Optimize>false</Optimize>
24+
<OutputPath>bin\Debug\</OutputPath>
25+
<DefineConstants>DEBUG;TRACE</DefineConstants>
26+
<ErrorReport>prompt</ErrorReport>
27+
<WarningLevel>4</WarningLevel>
28+
</PropertyGroup>
29+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
30+
<DebugType>pdbonly</DebugType>
31+
<Optimize>true</Optimize>
32+
<OutputPath>bin\Release\</OutputPath>
33+
<DefineConstants>TRACE</DefineConstants>
34+
<ErrorReport>prompt</ErrorReport>
35+
<WarningLevel>4</WarningLevel>
36+
</PropertyGroup>
37+
<ItemGroup>
38+
<Reference Include="System" />
39+
</ItemGroup>
40+
<Choose>
41+
<When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
42+
<ItemGroup>
43+
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
44+
</ItemGroup>
45+
</When>
46+
<Otherwise>
47+
<ItemGroup>
48+
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
49+
</ItemGroup>
50+
</Otherwise>
51+
</Choose>
52+
<ItemGroup>
53+
<Compile Include="UnitTest1.cs" />
54+
<Compile Include="Properties\AssemblyInfo.cs" />
55+
</ItemGroup>
56+
<ItemGroup>
57+
<ProjectReference Include="..\NoteHighlightAddin\NoteHighlightAddin.csproj">
58+
<Project>{d874e185-08fe-48c5-bade-0fe84060c978}</Project>
59+
<Name>NoteHighlightAddin</Name>
60+
</ProjectReference>
61+
</ItemGroup>
62+
<Choose>
63+
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
64+
<ItemGroup>
65+
<Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
66+
<Private>False</Private>
67+
</Reference>
68+
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
69+
<Private>False</Private>
70+
</Reference>
71+
<Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
72+
<Private>False</Private>
73+
</Reference>
74+
<Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
75+
<Private>False</Private>
76+
</Reference>
77+
</ItemGroup>
78+
</When>
79+
</Choose>
80+
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
81+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
82+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
83+
Other similar extension points exist, see Microsoft.Common.targets.
84+
<Target Name="BeforeBuild">
85+
</Target>
86+
<Target Name="AfterBuild">
87+
</Target>
88+
-->
89+
</Project>

0 commit comments

Comments
 (0)