Menu

Tree [cdd5d9] master /
 History

HTTPS access


File Date Author Commit
 src 2018-12-15 Tuba Kaya Tuba Kaya [0c0b07] 🐛 Fixes duplicate generation of same fields
 .gitattributes 2018-04-20 Tuba Kaya Tuba Kaya [bd50ea] f1 Moved Constructor method to separate class
 .gitignore 2017-04-12 Tuba Kaya Tuba Kaya [f6ea7a] Add .gitignore
 LICENSE.txt 2018-11-20 Tuba Kaya Tuba Kaya [2afaa8] Adds Apache 2.0 license
 README.md 2018-11-30 Tuba Kaya Tuba Kaya [61fd71] Update README.md
 appveyor.yml 2018-11-28 Tuba Kaya Tuba Kaya [b77bfa] Run tests in appveyor

Read Me

Build status
Nuget Downloads

AutoSetup

AutoSetup automatically generates mocks and setup for a class under test. It finds the class under test based on naming convention. Detects its dependencies and generates mocks for each dependency, as well as a setup method initializing a target instance using the mocked fields.

Usage

Please first install nuget package on your test project.

Package manager command:
Install-Package AutoSetup

Steps

Steps

  1. Go to test class
  2. Locate the cursor on test class name
  3. See lightbulb "(Re-)Generate SetUp" and click
  4. See generated constructor for class under test

Contributing

Please install prerequisites, clone the source code and follow installation steps to get a development environment running.

Prerequisites

This project requires
* .NET Compiler Platform SDK.

To install .NET Compiler Platform SDK please run Visual Studio Installer. There choose Modify and then make sure to include "Visual Studio extension development" and within this category check the box for ".NET Compiler Platform SDK".

Note: .Net Compiler Platform SDK Extension from Microsoft Marketplace is not compatible anymore with Visual Studio 2017. Please install using the Visual Studio Installer as suggested above.

Installing

  • Add AppVeyor nuget feed source to local environment (please ask for the credentials)
  • Restore nuget packages
  • Build solution
  • Run AutoSetup.Vsix to test the Visual Studio extension
  • Or, install the generated nuget package autosetup.pkg into a project.

License

This project is licensed under the Apache 2.0 License.