Giter Site home page Giter Site logo

moq's Introduction

moq v5

The most popular and friendly mocking framework for .NET

Version Status License Discord Chat GitHub

IMPORTANT: this repository is for the upcoming version of Moq. Issues and source for the current stable Moq v4.x are at https://github.com/moq/moq4

CI package feed: https://pkg.kzu.io/index.json

Building the repository

dotnet msbuild

Running tests:

dotnet test

Testing built packages locally

You can either build from command line or explicitly Pack (from the context menu) the Moq.Package project.

Packages are generated in the bin folder in the repository root. To test these packages you can just add a package source pointing to it. You can also just place a NuGet.Config like the following anywhere above the directory with the test solution(s):

<configuration>
	<packageSources>
		<add key="moq" value="[cloned repo dir]\bin" />
  </packageSources>
</configuration>

You can also do use project properties (or a Directory.Build.props to affect an entire folder hierarchy) with:

<Project>
  <PropertyGroup>
    <RestoreSources>https://api.nuget.org/v3/index.json;$(RestoreSources)</RestoreSources>
    <RestoreSources Condition="Exists('[cloned repo dir]\bin')">[cloned repo dir]\bin;$(RestoreSources)</RestoreSources>
  </PropertyGroup>
<Project>

Every time the packages are produced, the local nuget cache is cleared, so that a subsequent restore in VS will automatically cause the updated version to be unpacked again. The locally built version will always have the version 42.42.42.

Sponsors

sponsors  by @clarius sponsors

get mentioned here too!

moq's People

Contributors

adalon avatar blairconrad avatar kzu avatar stakx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.