Skip to content

Commit

Permalink
AU: 1 updated - unit-test-boilerplate-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Jul 14, 2019
1 parent 9aa425a commit 0587dac
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions automatic/unit-test-boilerplate-generator/Changelog.md
@@ -1,5 +1,10 @@
# ![Unit Test Boilerplate Generator Changelog](https://img.shields.io/badge/Unit%20Test%20Boilerplate%20Generator-Package%20Changelog-blue.svg?style=for-the-badge)

## Version: 2.0.0 (2019-07-14)

- **BUGS:** Changed readme image links from rawgit to jsdelivr
- Move all icons to their respective package directory [#47](https://github.com/AdmiringWorm/chocolatey-packages/issues/47)

## Version: 1.10.0 (2019-04-26)

- **BUG:** Updater times out during update check [#67](https://github.com/AdmiringWorm/chocolatey-packages/issues/67)
Expand Down
2 changes: 1 addition & 1 deletion automatic/unit-test-boilerplate-generator/Readme.md
@@ -1,4 +1,4 @@
# [<img src="https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@7f25c1838154fe1d1a6d73a052e5d0c351f0fd76/icons/unit-test-boilerplate-generator.png" height="48" width="48" /> ![Unit Test Boilerplate Generator](https://img.shields.io/chocolatey/v/unit-test-boilerplate-generator.svg?label=Unit%20Test%20Boilerplate%20Generator&style=for-the-badge)](https://chocolatey.org/packages/unit-test-boilerplate-generator)
# [<img src="https://cdn.jsdelivr.net/gh/AdmiringWorm/chocolatey-packages@1a49dac9d37d4ff887f5bf5a145425f5e87fb081/automatic/unit-test-boilerplate-generator/icons/128x128.png" height="48" width="48" /> ![Unit Test Boilerplate Generator](https://img.shields.io/chocolatey/v/unit-test-boilerplate-generator.svg?label=Unit%20Test%20Boilerplate%20Generator&style=for-the-badge)](https://chocolatey.org/packages/unit-test-boilerplate-generator)

Generates a unit test boilerplate from a given C# class, setting up mocks for all dependencies and test outlines for all public methods.

Expand Down
Expand Up @@ -5,12 +5,12 @@ in verifying that this package's contents are trustworthy.
The extension has been downloaded from visual studio gallery <https://marketplace.visualstudio.com/items?itemName=RandomEngy.UnitTestBoilerplateGenerator>
and can be verified like this:

1. Download <https://randomengy.gallerycdn.vsassets.io/extensions/randomengy/unittestboilerplategenerator/1.10.5/1559409092356/Unit_Test_Boilerplate_Generator_v1.10.5.vsix>
1. Download <https://randomengy.gallerycdn.vsassets.io/extensions/randomengy/unittestboilerplategenerator/2.0.0/1563083847506/Unit_Test_Boilerplate_Generator_v2.0.0.vsix>
2. Then use one of the following methods to obtain the checksum
- Use powershell function 'Get-Filehash'
- Use chocolatey utility 'checksum.exe'

checksum type: sha256
checksum: CB6B2FCFBE99EDAD3631D4C99B730A1FDF189EF18CF1F95C81505B642039FFF9
checksum: 0D7282CA7597C73F986203D44B40A951DE16E0C7B5720A7F113ED929B34B7576

The file 'LICENSE.txt' has been obtained from <https://github.com/Microsoft/UnitTestBoilerplateGenerator/blob/46b546e65c20786ffdcba04a6011b638f79e6d25/LICENSE>
Expand Up @@ -4,7 +4,7 @@ $toolsPath = Split-Path $MyInvocation.MyCommand.Definition

$parameters = @{
PackageName = $env:ChocolateyPackageName
File = "$toolsPath\Unit_Test_Boilerplate_Generator_v1.10.5.vsix"
File = "$toolsPath\Unit_Test_Boilerplate_Generator_v2.0.0.vsix"
}

Install-VisualStudioVsixExtension @parameters
Expand Up @@ -3,13 +3,13 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>unit-test-boilerplate-generator</id>
<version>1.10.5</version>
<version>2.0.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@7f25c1838154fe1d1a6d73a052e5d0c351f0fd76/icons/unit-test-boilerplate-generator.png</iconUrl>
<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>
Expand Down Expand Up @@ -42,13 +42,13 @@ Dependency injection modes supported:
Right click an item in Solution Explorer and choose "Create Unit Test Boilerplate" .
![Before Screenshot](https://cdn.rawgit.com/AdmiringWorm/chocolatey-packages/97e1459ab29627e3f745789c45bed85ef3f67f29/automatic/unit-test-boilerplate-generator/screenshots/BeforeScreenshot.png)
![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.rawgit.com/AdmiringWorm/chocolatey-packages/97e1459ab29627e3f745789c45bed85ef3f67f29/automatic/unit-test-boilerplate-generator/screenshots/AfterScreenshot.png)
![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>
Expand Down

0 comments on commit 0587dac

Please sign in to comment.