├── .gitignore
├── xUnitTestProjectTemplate
├── __TemplateIcon.ico
├── UnitTest1.cs
├── xUnitTestProjectTemplate.vstemplate
├── AssemblyInfo.cs
├── Properties
│ └── AssemblyInfo.cs
├── UnitTestProject1.csproj
└── xUnitTestProjectTemplate.csproj
├── xUnitTestProjectTemplate.VSIXProject
├── icon.png
├── release-notes.txt
├── LICENSE
├── source.extension.vsixmanifest
└── xUnitTestProjectTemplate.VSIXProject.csproj
├── README.md
├── LICENSE
└── xUnitTestProjectTemplate.sln
/.gitignore:
--------------------------------------------------------------------------------
1 | *.vsix
2 | dist/
3 | bin/
4 | obj/
5 | .vs/
6 | *.user
7 | *.suo
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/__TemplateIcon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jsakamoto/xUnitTestProjectTemplate/HEAD/xUnitTestProjectTemplate/__TemplateIcon.ico
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate.VSIXProject/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jsakamoto/xUnitTestProjectTemplate/HEAD/xUnitTestProjectTemplate.VSIXProject/icon.png
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate.VSIXProject/release-notes.txt:
--------------------------------------------------------------------------------
1 | v.4.0.1
2 | - Visual Studio 2022 support
3 | - Add Test
4 |
5 | - v.4.0.0
6 | - Visual Studio 2019 support
7 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/UnitTest1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Linq;
3 | using Xunit;
4 |
5 | namespace $safeprojectname$
6 | {
7 | public class UnitTest1
8 | {
9 | [Fact]
10 | public void TestMethod1()
11 | {
12 | }
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # xUnit Test Project Template (.NET Framework)
2 |
3 | This is a project template that contains xUnit.net tests with Visual Studio Runner, for Visual Studio 2019 and 2022.
4 |
5 | ## Download
6 |
7 | To download the project template, please visit the following link.
8 |
9 | - [📦 xUnit Test Project Template (.NET Framework) | Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=jsakamoto.xUnitTestProjectTemplate&ssr=false)
10 |
11 | ## License
12 |
13 | [MIT License](LICENSE)
14 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 J.Sakamoto
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate.VSIXProject/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 J.Sakamoto
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/xUnitTestProjectTemplate.vstemplate:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | xUnit Test Project (.NET Framework)
5 | A project that contains xUnit.net tests that can run on .NET Framework on Windows, with Visual Studio Runner.
6 | __TemplateIcon.ico
7 | CSharp
8 | Test
9 | csharp
10 | 4.5.2
11 | 1000
12 | 3b3f4655-3567-4398-8470-30973562be2b
13 | true
14 | UnitTestProject
15 | true
16 |
17 |
18 |
19 | UnitTest1.cs
20 | AssemblyInfo.cs
21 |
22 |
23 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/AssemblyInfo.cs:
--------------------------------------------------------------------------------
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("$projectname$")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("$registeredorganization$")]
12 | [assembly: AssemblyProduct("$projectname$")]
13 | [assembly: AssemblyCopyright("Copyright © $registeredorganization$ $year$")]
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("$guid1$")]
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")]
37 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
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("xUnitTestProjectTemplate")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("J.Sakamoto")]
12 | [assembly: AssemblyProduct("xUnitTestProjectTemplate")]
13 | [assembly: AssemblyCopyright("Copyright © J.Sakamoto 2020")]
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("8aabe172-8eec-48c8-8166-10de20f6f188")]
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")]
37 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate.VSIXProject/source.extension.vsixmanifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | xUnit Test Project Template (.NET Framework)
6 | A project that contains xUnit.net tests that can run on .NET Framework on Windows, with Visual Studio Runner.
7 | https://marketplace.visualstudio.com/items?itemName=jsakamoto.xUnitTestProjectTemplate
8 | LICENSE
9 | release-notes.txt
10 | icon.png
11 | xunit,Unit Testing,TDD
12 |
13 |
14 |
17 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.2.32317.152
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitTestProjectTemplate", "xUnitTestProjectTemplate\xUnitTestProjectTemplate.csproj", "{8AABE172-8EEC-48C8-8166-10DE20F6F188}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "xUnitTestProjectTemplate.VSIXProject", "xUnitTestProjectTemplate.VSIXProject\xUnitTestProjectTemplate.VSIXProject.csproj", "{37A212F6-5A8A-4146-B091-742D9FACA31D}"
9 | EndProject
10 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "README", "README", "{C713197F-AB1B-4064-9D62-DCCFA1B8D61F}"
11 | ProjectSection(SolutionItems) = preProject
12 | LICENSE = LICENSE
13 | README.md = README.md
14 | EndProjectSection
15 | EndProject
16 | Global
17 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
18 | Debug|Any CPU = Debug|Any CPU
19 | Release|Any CPU = Release|Any CPU
20 | EndGlobalSection
21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 | {8AABE172-8EEC-48C8-8166-10DE20F6F188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {8AABE172-8EEC-48C8-8166-10DE20F6F188}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {8AABE172-8EEC-48C8-8166-10DE20F6F188}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {8AABE172-8EEC-48C8-8166-10DE20F6F188}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {37A212F6-5A8A-4146-B091-742D9FACA31D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {37A212F6-5A8A-4146-B091-742D9FACA31D}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {37A212F6-5A8A-4146-B091-742D9FACA31D}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {37A212F6-5A8A-4146-B091-742D9FACA31D}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(ExtensibilityGlobals) = postSolution
35 | SolutionGuid = {34A0C6C5-D507-4DA4-8CB3-7C614787DBAD}
36 | EndGlobalSection
37 | EndGlobal
38 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/UnitTestProject1.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | $guid1$
8 | Library
9 | Properties
10 | $safeprojectname$
11 | $safeprojectname$
12 | v$targetframeworkversion$
13 | 512
14 | {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
15 | UnitTest
16 |
17 |
18 |
19 | true
20 | full
21 | false
22 | bin\Debug\
23 | DEBUG;TRACE
24 | prompt
25 | 4
26 |
27 |
28 |
29 | pdbonly
30 | true
31 | bin\Release\
32 | TRACE
33 | prompt
34 | 4
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
67 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate/xUnitTestProjectTemplate.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16.0
5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
6 |
7 |
8 |
9 | Debug
10 | AnyCPU
11 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
12 | {8AABE172-8EEC-48C8-8166-10DE20F6F188}
13 | Library
14 | Properties
15 | xUnitTestProjectTemplate
16 | xUnitTestProjectTemplate
17 | v4.5.2
18 | win
19 | 512
20 | false
21 | false
22 | false
23 | false
24 | false
25 | false
26 | false
27 | false
28 | false
29 | false
30 |
31 |
32 | true
33 | full
34 | false
35 | bin\Debug\
36 | DEBUG;TRACE
37 | prompt
38 | 4
39 |
40 |
41 | pdbonly
42 | true
43 | bin\Release\
44 | TRACE
45 | prompt
46 | 4
47 |
48 |
49 |
50 | False
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
78 |
--------------------------------------------------------------------------------
/xUnitTestProjectTemplate.VSIXProject/xUnitTestProjectTemplate.VSIXProject.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 16.0
5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
6 |
7 |
8 |
9 | Debug
10 | AnyCPU
11 | 2.0
12 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
13 | {37A212F6-5A8A-4146-B091-742D9FACA31D}
14 | Library
15 | Properties
16 | xUnitTestProjectTemplate.VSIXProject
17 | xUnitTestProjectTemplate.VSIXProject
18 | v4.7.2
19 | true
20 | false
21 | true
22 | true
23 | false
24 | false
25 | true
26 | true
27 | Program
28 | $(DevEnvDir)devenv.exe
29 | /rootsuffix Exp
30 |
31 |
32 | true
33 | full
34 | false
35 | bin\Debug\
36 | DEBUG;TRACE
37 | prompt
38 | 4
39 |
40 |
41 | pdbonly
42 | true
43 | bin\Release\
44 | TRACE
45 | prompt
46 | 4
47 |
48 |
49 |
50 | true
51 |
52 |
53 | Always
54 | true
55 |
56 |
57 |
58 |
59 | Always
60 | true
61 |
62 |
63 | Designer
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 | {8AABE172-8EEC-48C8-8166-10DE20F6F188}
76 | xUnitTestProjectTemplate
77 | ProjectTemplates
78 | false
79 | TemplateProjectOutputGroup%3b
80 |
81 |
82 |
83 |
84 |
91 |
92 |
93 | $(ProjectDir)..\dist
94 | $(ProjectDir)source.extension.vsixmanifest
95 | $([System.IO.File]::ReadAllText("$(VsixManifestPath)"))
96 | (?m)^[ \t]*<Identity[ \t]+Version="([^"]+)"
97 | $([System.Text.RegularExpressions.Regex]::Match($(VsixManifestContent), $(VsixManifestVersionTextRegexPattern)).Groups[1].Value)
98 |
99 |
100 |
101 |
102 |
--------------------------------------------------------------------------------