Initial commit
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>Moq</id>
|
||||
<version>4.20.72</version>
|
||||
<title>Moq: an enjoyable mocking library</title>
|
||||
<authors>Daniel Cazzulino, kzu</authors>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<license type="expression">BSD-3-Clause</license>
|
||||
<licenseUrl>https://licenses.nuget.org/BSD-3-Clause</licenseUrl>
|
||||
<icon>icon.png</icon>
|
||||
<readme>readme.md</readme>
|
||||
<projectUrl>https://github.com/moq/moq</projectUrl>
|
||||
<description>Moq is the most popular and friendly mocking framework for .NET.</description>
|
||||
<releaseNotes>https://github.com/moq/moq/blob/main/changelog.md</releaseNotes>
|
||||
<copyright>Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, and Contributors. All rights reserved.</copyright>
|
||||
<tags>moq;tdd;mocking;mocks;unittesting;agile;unittest</tags>
|
||||
<repository type="git" url="https://github.com/moq/moq" branch="v4.20.72" commit="959fc5128f868fdcbdbb70dbfca86330980431ba" />
|
||||
<dependencies>
|
||||
<group targetFramework=".NETFramework4.6.2">
|
||||
<dependency id="Castle.Core" version="5.1.1" />
|
||||
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" />
|
||||
</group>
|
||||
<group targetFramework=".NETStandard2.0">
|
||||
<dependency id="Castle.Core" version="5.1.1" />
|
||||
<dependency id="System.Threading.Tasks.Extensions" version="4.5.4" />
|
||||
</group>
|
||||
<group targetFramework=".NETStandard2.1">
|
||||
<dependency id="Castle.Core" version="5.1.1" />
|
||||
</group>
|
||||
<group targetFramework="net6.0">
|
||||
<dependency id="Castle.Core" version="5.1.1" />
|
||||
</group>
|
||||
</dependencies>
|
||||
</metadata>
|
||||
</package>
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de50d8ae70fbc5a4ca76b9e3dd305228
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,117 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7af3787df3f2fdd47bb1c328bb2253de
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 13
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 4
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 4
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
customData:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spriteCustomMetadata:
|
||||
entries: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0a6f8c9c796d84442a4d0f69eff9ca04
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 150b998903245614e8a9c456908d737a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,29 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 69917905d8e9cba4791da941935d3081
|
||||
labels:
|
||||
- NuGetForUnity
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 3
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
WindowsStoreApps:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,102 @@
|
||||
<!-- include ../../readme.md#content -->
|
||||
<!-- #content -->
|
||||
The most popular and friendly mocking library for .NET
|
||||
|
||||
```csharp
|
||||
var mock = new Mock<ILoveThisLibrary>();
|
||||
|
||||
// WOW! No record/replay weirdness?! :)
|
||||
mock.Setup(library => library.DownloadExists("2.0.0.0"))
|
||||
.Returns(true);
|
||||
|
||||
// Use the Object property on the mock to get a reference to the object
|
||||
// implementing ILoveThisLibrary, and then exercise it by calling
|
||||
// methods on it
|
||||
ILoveThisLibrary lovable = mock.Object;
|
||||
bool download = lovable.DownloadExists("2.0.0.0");
|
||||
|
||||
// Verify that the given method was indeed called with the expected value at most once
|
||||
mock.Verify(library => library.DownloadExists("2.0.0.0"), Times.AtMostOnce());
|
||||
```
|
||||
|
||||
Moq also is the first and only library so far to provide Linq to Mocks, so that the
|
||||
same behavior above can be achieved much more succinctly:
|
||||
|
||||
```csharp
|
||||
ILoveThisLibrary lovable = Mock.Of<ILoveThisLibrary>(l =>
|
||||
l.DownloadExists("2.0.0.0") == true);
|
||||
|
||||
// Exercise the instance returned by Mock.Of by calling methods on it...
|
||||
bool download = lovable.DownloadExists("2.0.0.0");
|
||||
|
||||
// Simply assert the returned state:
|
||||
Assert.True(download);
|
||||
|
||||
// If you want to go beyond state testing and want to
|
||||
// verify the mock interaction instead...
|
||||
Mock.Get(lovable).Verify(library => library.DownloadExists("2.0.0.0"));
|
||||
```
|
||||
|
||||
You can think of Linq to Mocks as "from the universe of mocks, give me one whose behavior
|
||||
matches this expression".
|
||||
|
||||
Check out the [Quickstart](https://github.com/devlooped/moq/wiki/Quickstart) for more examples!
|
||||
|
||||
<!-- #content -->
|
||||
<!-- ../../readme.md#content -->
|
||||
<!-- include ../../readme.md#sponsors -->
|
||||
<!-- #sponsors -->
|
||||
<!-- include https://raw.githubusercontent.com/devlooped/sponsors/main/footer.md -->
|
||||
# Sponsors
|
||||
|
||||
<!-- include sponsors.md -->
|
||||
[](https://github.com/clarius)
|
||||
[](https://github.com/KirillOsenkov)
|
||||
[](https://github.com/MFB-Technologies-Inc)
|
||||
[](https://github.com/decriptor)
|
||||
[](https://github.com/torutek-gh)
|
||||
[](https://github.com/drivenet)
|
||||
[](https://github.com/AshleyMedway)
|
||||
[](https://github.com/Keflon)
|
||||
[](https://github.com/tbolon)
|
||||
[](https://github.com/kfrancis)
|
||||
[](https://github.com/twenzel)
|
||||
[](https://github.com/Giorgi)
|
||||
[](https://github.com/unoplatform)
|
||||
[](https://github.com/dansiegel)
|
||||
[](https://github.com/rbnswartz)
|
||||
[](https://github.com/jfoshee)
|
||||
[](https://github.com/Mrxx99)
|
||||
[](https://github.com/eajhnsn1)
|
||||
[](https://github.com/IxTechnologies)
|
||||
[](https://github.com/davidjenni)
|
||||
[](https://github.com/Jonathan-Hickey)
|
||||
[](https://github.com/okyrylchuk)
|
||||
[](https://github.com/akunzai)
|
||||
[](https://github.com/jakobt)
|
||||
[](https://github.com/seanalexander)
|
||||
[](https://github.com/tinohager)
|
||||
[](https://github.com/ploeh)
|
||||
[](https://github.com/KenBonny)
|
||||
[](https://github.com/SimonCropp)
|
||||
[](https://github.com/agileworks-eu)
|
||||
[](https://github.com/sorahex)
|
||||
[](https://github.com/arsdragonfly)
|
||||
[](https://github.com/vezel-dev)
|
||||
[](https://github.com/ChilliCream)
|
||||
[](https://github.com/4OTC)
|
||||
[](https://github.com/v-limo)
|
||||
[](https://github.com/brooke-hamilton)
|
||||
|
||||
|
||||
<!-- sponsors.md -->
|
||||
|
||||
[](https://github.com/sponsors/devlooped)
|
||||
|
||||
|
||||
[Learn more about GitHub Sponsors](https://github.com/sponsors)
|
||||
<!-- https://raw.githubusercontent.com/devlooped/sponsors/main/footer.md -->
|
||||
<!-- ../../readme.md#sponsors -->
|
||||
|
||||
<!-- Exclude from auto-expansion by devlooped/actions-include GH action -->
|
||||
<!-- exclude -->
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 148f3490aa14ca949b02a7915d6bef7c
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user