Skip to content
This repository has been archived by the owner on Dec 15, 2024. It is now read-only.

.Net Standard 1.3 (UWP, .NET, .NET Core support) #33

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*.cs]
indent_style = space
indent_size = 4

[project.json]
indent_style = space
indent_size = 4

[appveyor.yml]
indent_style = space
indent_size = 2
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
project.lock.json
.vs/
.vscode/
key.txt
/Source/*/obj
/Source/*/bin
Expand All @@ -19,5 +22,5 @@ Source/GlobalAssemblyInfo.cs
*_mm_cache.bin
*.user
Source/packages
*.ncrunch*
.fake
*.ncrunch*
.fake
6 changes: 0 additions & 6 deletions Source/.nuget/NuGet.Config

This file was deleted.

Binary file removed Source/.nuget/nuget.exe
Binary file not shown.
4 changes: 0 additions & 4 deletions Source/.nuget/packages.config

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>86e1223e-4d68-41d8-84ad-b68d40a06d66</ProjectGuid>
<RootNamespace>Machine.Fakes.Adapters.FakeItEasy</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System.Reflection;

[assembly: AssemblyTitle("Machine.Fakes.Adapters.FakeItEasy")]
[assembly: AssemblyVersion("0.2.7.0")]
[assembly: AssemblyDescription("An integration layer for fake frameworks on top of MSpec")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCopyrightAttribute("2011 - 2014 Bjoern Rochel, Steffen Forkmann, Simon Hohenadl et al.")]
4 changes: 0 additions & 4 deletions Source/Machine.Fakes.Adapters.FakeItEasy/packages.config

This file was deleted.

26 changes: 26 additions & 0 deletions Source/Machine.Fakes.Adapters.FakeItEasy/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.0.1-*",
"packOptions": {
"summary": "An integration layer for fake frameworks on top of Machine.Specifications",
"owners": [ "Machine Project" ],
"projectUrl": "https://github.com/machine/machine.fakes",
"licenseUrl": "https://github.com/machine/machine.fakes/raw/master/License.txt",
"iconUrl": "https://github.com/machine/machine.fakes/raw/master/machine.fakes-128x128.png",
"tags": [ "tdd", "bdd", "testing", "unittest", "fakes", "mocks", "mspec", "mfakes" ],
"requireLicenseAcceptance": false,
"releaseNotes": "See https://github.com/machine/machine.fakes/releases"
},
"description": "Machine.Fakes attempts to simplify the usage of such frameworks on top of Machine.Specifications by helping to reduce a lot of the typical fake framwork related clutter code in specifications. If you choose so, Machine.Fakes even helps you to stay mostly independent of a concrete fake framework by providing a little wrapper API and a provider model for fake frameworks. ",
"authors": [
"Machine Project"
],
"frameworks": {
"net40": {}
},
"dependencies": {
"Machine.Fakes": {
"target": "project"
},
"FakeItEasy": "2.0.0"
}
}

This file was deleted.

19 changes: 19 additions & 0 deletions Source/Machine.Fakes.Adapters.Moq/Machine.Fakes.Adapters.Moq.xproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion>
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>ab44677e-879d-4cdc-bdfc-522d4ab973e2</ProjectGuid>
<RootNamespace>Machine.Fakes.Adapters.Moq</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
</PropertyGroup>

<PropertyGroup>
<SchemaVersion>2.0</SchemaVersion>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
16 changes: 8 additions & 8 deletions Source/Machine.Fakes.Adapters.Moq/MoqFakeEngine.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.Linq.Expressions;

using System.Reflection;
using Machine.Fakes.Sdk;
using Moq;

Expand Down Expand Up @@ -29,7 +29,7 @@ public override object CreateFake(Type interfaceType, params object[] args)
}

/// <inheritdoc/>
public override T PartialMock<T>(params object[] args)
public override T PartialMock<T>(params object[] args)
{
var closedMockType = typeof(Mock<>).MakeGenericType(typeof(T));
// ReSharper disable PossibleNullReferenceException
Expand All @@ -43,7 +43,7 @@ public override T PartialMock<T>(params object[] args)
/// <inheritdoc/>
protected override IQueryOptions<TReturnValue> OnSetUpQueryBehaviorFor<TFake, TReturnValue>(
TFake fake,
Expression<Func<TFake, TReturnValue>> func)
Expression<Func<TFake, TReturnValue>> func)
{
var mock = Mock.Get(fake);

Expand All @@ -53,7 +53,7 @@ protected override IQueryOptions<TReturnValue> OnSetUpQueryBehaviorFor<TFake, TR
/// <inheritdoc/>
protected override ICommandOptions OnSetUpCommandBehaviorFor<TFake>(
TFake fake,
Expression<Action<TFake>> func)
Expression<Action<TFake>> func)
{
var mock = Mock.Get(fake);

Expand All @@ -62,8 +62,8 @@ protected override ICommandOptions OnSetUpCommandBehaviorFor<TFake>(

/// <inheritdoc/>
protected override void OnVerifyBehaviorWasNotExecuted<TFake>(
TFake fake,
Expression<Action<TFake>> func)
TFake fake,
Expression<Action<TFake>> func)
{
var mock = Mock.Get(fake);

Expand All @@ -72,8 +72,8 @@ protected override void OnVerifyBehaviorWasNotExecuted<TFake>(

/// <inheritdoc/>
protected override IMethodCallOccurrence OnVerifyBehaviorWasExecuted<TFake>(
TFake fake,
Expression<Action<TFake>> func)
TFake fake,
Expression<Action<TFake>> func)
{
var mock = Mock.Get(fake);

Expand Down
7 changes: 7 additions & 0 deletions Source/Machine.Fakes.Adapters.Moq/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System.Reflection;

[assembly: AssemblyTitle("Machine.Fakes.Adapters.Moq")]
[assembly: AssemblyVersion("0.2.7.0")]
[assembly: AssemblyDescription("An integration layer for fake frameworks on top of MSpec")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCopyrightAttribute("2011 - 2014 Bjoern Rochel, Steffen Forkmann, Simon Hohenadl et al.")]
4 changes: 0 additions & 4 deletions Source/Machine.Fakes.Adapters.Moq/packages.config

This file was deleted.

31 changes: 31 additions & 0 deletions Source/Machine.Fakes.Adapters.Moq/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": "1-*",
"packOptions": {
"summary": "An integration layer for fake frameworks on top of Machine.Specifications",
"owners": [ "Machine Project" ],
"projectUrl": "https://github.com/machine/machine.fakes",
"licenseUrl": "https://github.com/machine/machine.fakes/raw/master/License.txt",
"iconUrl": "https://github.com/machine/machine.fakes/raw/master/machine.fakes-128x128.png",
"tags": [ "tdd", "bdd", "testing", "unittest", "fakes", "mocks", "mspec", "mfakes" ],
"requireLicenseAcceptance": false,
"releaseNotes": "See https://github.com/machine/machine.fakes/releases"
},
"description": "Machine.Fakes attempts to simplify the usage of such frameworks on top of Machine.Specifications by helping to reduce a lot of the typical fake framwork related clutter code in specifications. If you choose so, Machine.Fakes even helps you to stay mostly independent of a concrete fake framework by providing a little wrapper API and a provider model for fake frameworks. ",
"authors": [
"Machine Project"
],
"frameworks": {
"net45": {},
"netstandard1.3": {
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
},
"dependencies": {
"Machine.Fakes": {
"target": "project"
},
"Moq": "4.6.36-alpha"
}
}
Loading