/
unit-test-boilerplate-generator.nuspec
65 lines (54 loc) · 3.54 KB
/
unit-test-boilerplate-generator.nuspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
61
62
63
64
65
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>unit-test-boilerplate-generator</id>
<version>2.1.0</version>
<packageSourceUrl>https://github.com/AdmiringWorm/chocolatey-packages/tree/master/automatic/unit-test-boilerplate-generator</packageSourceUrl>
<owners>AdmiringWorm</owners>
<title>Unit Test Boilerplate Generator</title>
<authors>RandomEngy,Microsoft</authors>
<projectUrl>https://marketplace.visualstudio.com/items?itemName=RandomEngy.UnitTestBoilerplateGenerator</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@1a49dac9d37d4ff887f5bf5a145425f5e87fb081/automatic/unit-test-boilerplate-generator/icons/128x128.png</iconUrl>
<copyright>Copyright (c) 2016 Microsoft</copyright>
<licenseUrl>https://github.com/Microsoft/UnitTestBoilerplateGenerator/blob/master/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectSourceUrl>https://github.com/Microsoft/UnitTestBoilerplateGenerator</projectSourceUrl>
<docsUrl>Ahttps://github.com/Microsoft/UnitTestBoilerplateGenerator/wiki</docsUrl>
<bugTrackerUrl>https://github.com/Microsoft/UnitTestBoilerplateGenerator/issues</bugTrackerUrl>
<tags>unit-test-boilerplate-generator visual-studio-extension vsix development unit-tests generation</tags>
<summary>Generates a unit test boilerplate from a given C# class</summary>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description><![CDATA[Generates a unit test boilerplate from a given C# class, setting up mocks for all dependencies and test outlines for all public methods.
Test frameworks supported:
- Visual Studio
- NUnit
- xUnit
Mock frameworks supported:
- Moq
- AutoMoq
- NSubstitute
- SimpleStubs
- Rhino Mocks
Dependency injection modes supported:
- Constructor injection via any IoC framework
- Property injection via Unity, Ninject or Grace
Right click an item in Solution Explorer and choose "Create Unit Test Boilerplate" .
![Before Screenshot](https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@97e1459ab29627e3f745789c45bed85ef3f67f29/automatic/unit-test-boilerplate-generator/screenshots/BeforeScreenshot.png)
This will create a test class in the same relative path as the class in a specified unit test project.
All the dependencies are mocked and saved as fields which are created fresh for each test via \[TestInitialize]. In addition, all public methods
on the tested class are set up with a test method outline:
![After Screenshot](https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@97e1459ab29627e3f745789c45bed85ef3f67f29/automatic/unit-test-boilerplate-generator/screenshots/AfterScreenshot.png)
Each mocking framework has its own pattern.
]]></description>
<releaseNotes>[Software Changelog](https://github.com/Microsoft.UnitTestBoilerplateGenerator/blob/master/CHANGELOG.md#)
[Package Changelog](https://github.com/AdmiringWorm/chocolatey-packages/blob/master/unit-test-boilerplate-generator/Changelog.md)</releaseNotes>
<dependencies>
<dependency id="chocolatey-visualstudio.extension" version="1.7.0" />
</dependencies>
</metadata>
<files>
<file src="legal\**" target="legal" />
<file src="tools\**" target="tools" />
</files>
</package>