Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Commit 8069233

Browse files
committed
Added initial v5 spike for historic purposes.
1 parent 3582754 commit 8069233

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3381
-19
lines changed

spikes/v5/.nuget/NuGet.Config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<solution>
4+
<add key="disableSourceControlIntegration" value="true" />
5+
</solution>
6+
</configuration>

spikes/v5/.nuget/NuGet.exe

545 KB
Binary file not shown.

spikes/v5/.nuget/NuGet.targets

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
5+
<NuGetToolsPath>$([System.IO.Path]::Combine($(SolutionDir), ".nuget"))</NuGetToolsPath>
6+
<NuGetExePath>$(NuGetToolsPath)\nuget.exe</NuGetExePath>
7+
<PackagesConfig>$([System.IO.Path]::Combine($(ProjectDir), "packages.config"))</PackagesConfig>
8+
<PackagesDir>$([System.IO.Path]::Combine($(SolutionDir), "packages"))</PackagesDir>
9+
<PackageOutputDir Condition="$(PackageOutputDir) == ''">$(TargetDir.Trim('\\'))</PackageOutputDir>
10+
11+
<!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
12+
<PackageSources>""</PackageSources>
13+
14+
<!-- Enable the restore command to run before builds -->
15+
<RestorePackages Condition="$(RestorePackages) == ''">false</RestorePackages>
16+
17+
<!-- Property that enables building a package from a project -->
18+
<BuildPackage Condition="$(BuildPackage) == ''">false</BuildPackage>
19+
20+
<!-- Commands -->
21+
<RestoreCommand>"$(NuGetExePath)" install "$(PackagesConfig)" -source $(PackageSources) -o "$(PackagesDir)"</RestoreCommand>
22+
<BuildCommand>"$(NuGetExePath)" pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols</BuildCommand>
23+
24+
<!-- Make the build depend on restore packages -->
25+
<BuildDependsOn Condition="$(RestorePackages) == 'true'">
26+
RestorePackages;
27+
$(BuildDependsOn);
28+
</BuildDependsOn>
29+
30+
<!-- Make the build depend on restore packages -->
31+
<BuildDependsOn Condition="$(BuildPackage) == 'true'">
32+
$(BuildDependsOn);
33+
BuildPackage;
34+
</BuildDependsOn>
35+
</PropertyGroup>
36+
37+
<Target Name="CheckPrerequisites">
38+
<!-- Raise an error if we're unable to locate nuget.exe -->
39+
<Error Condition="!Exists('$(NuGetExePath)')" Text="Unable to locate '$(NuGetExePath)'" />
40+
</Target>
41+
42+
<Target Name="RestorePackages" DependsOnTargets="CheckPrerequisites">
43+
<Exec Command="$(RestoreCommand)"
44+
LogStandardErrorAsError="true"
45+
Condition="Exists('$(PackagesConfig)')" />
46+
</Target>
47+
48+
<Target Name="BuildPackage" DependsOnTargets="CheckPrerequisites">
49+
<Exec Command="$(BuildCommand)"
50+
LogStandardErrorAsError="true" />
51+
</Target>
52+
</Project>
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{D21B55BB-D92B-4255-9E1A-EC1DC977354C}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>Moq.Sdk.UnitTests</RootNamespace>
12+
<AssemblyName>Moq.Sdk.UnitTests</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\src\</SolutionDir>
16+
<RestorePackages>true</RestorePackages>
17+
</PropertyGroup>
18+
<Import Project="..\Solution Items\Moq.properties" />
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>pdbonly</DebugType>
29+
<Optimize>true</Optimize>
30+
<DefineConstants>TRACE</DefineConstants>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="Castle.Core, Version=3.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
36+
<SpecificVersion>False</SpecificVersion>
37+
<HintPath>..\packages\Castle.Core.3.2.0\lib\net40-client\Castle.Core.dll</HintPath>
38+
</Reference>
39+
<Reference Include="System" />
40+
<Reference Include="System.Core" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="xunit, Version=1.9.1.1600, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
43+
<SpecificVersion>False</SpecificVersion>
44+
<HintPath>..\packages\xunit.1.9.1\lib\net20\xunit.dll</HintPath>
45+
</Reference>
46+
</ItemGroup>
47+
<ItemGroup>
48+
<Compile Include="Properties\AssemblyInfo.cs" />
49+
</ItemGroup>
50+
<ItemGroup>
51+
<ProjectReference Include="..\Moq.Sdk\Moq.Sdk.csproj">
52+
<Project>{5967E307-A008-4EDB-B2DB-A97A1B9B1956}</Project>
53+
<Name>Moq.Sdk</Name>
54+
</ProjectReference>
55+
</ItemGroup>
56+
<ItemGroup>
57+
<None Include="..\Solution Items\Moq.licenseheader">
58+
<Link>Moq.licenseheader</Link>
59+
</None>
60+
<None Include="packages.config" />
61+
</ItemGroup>
62+
<ItemGroup />
63+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
64+
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
65+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
66+
Other similar extension points exist, see Microsoft.Common.targets.
67+
<Target Name="BeforeBuild">
68+
</Target>
69+
<Target Name="AfterBuild">
70+
</Target>
71+
-->
72+
</Project>
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
#region Apache Licensed
2+
/*
3+
Copyright 2013 Clarius Consulting, Daniel Cazzulino
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
#endregion
18+
19+
using System.Reflection;
20+
using System.Runtime.CompilerServices;
21+
using System.Runtime.InteropServices;
22+
23+
// General Information about an assembly is controlled through the following
24+
// set of attributes. Change these attribute values to modify the information
25+
// associated with an assembly.
26+
[assembly: AssemblyTitle("Moq.Core.UnitTests")]
27+
[assembly: AssemblyDescription("")]
28+
[assembly: AssemblyConfiguration("")]
29+
[assembly: AssemblyCompany("Microsoft")]
30+
[assembly: AssemblyProduct("Moq.Core.UnitTests")]
31+
[assembly: AssemblyCopyright("Copyright © Microsoft 2012")]
32+
[assembly: AssemblyTrademark("")]
33+
[assembly: AssemblyCulture("")]
34+
35+
// Setting ComVisible to false makes the types in this assembly not visible
36+
// to COM components. If you need to access a type in this assembly from
37+
// COM, set the ComVisible attribute to true on that type.
38+
[assembly: ComVisible(false)]
39+
40+
// The following GUID is for the ID of the typelib if this project is exposed to COM
41+
[assembly: Guid("0a41c813-0215-4aad-bf09-741ab39bce87")]
42+
43+
// Version information for an assembly consists of the following four values:
44+
//
45+
// Major Version
46+
// Minor Version
47+
// Build Number
48+
// Revision
49+
//
50+
// You can specify all the values or you can default the Build and Revision Numbers
51+
// by using the '*' as shown below:
52+
// [assembly: AssemblyVersion("1.0.*")]
53+
[assembly: AssemblyVersion("1.0.0.0")]
54+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<!--
4+
Copyright 2013 Clarius Consulting, Daniel Cazzulino
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
<packages>
19+
<package id="Castle.Core" version="3.2.0" targetFramework="net40" />
20+
<package id="xunit" version="1.9.1" targetFramework="net40" />
21+
</packages>

spikes/v5/Moq.Sdk/IFluentInterface.cs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#region Apache Licensed
2+
/*
3+
Copyright 2013 Clarius Consulting, Daniel Cazzulino
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
#endregion
18+
19+
namespace Moq
20+
{
21+
using System;
22+
using System.ComponentModel;
23+
24+
/// <summary>
25+
/// Interface that is used to build fluent interfaces and hides methods declared by <see cref="object"/> from IntelliSense.
26+
/// </summary>
27+
/// <remarks>
28+
/// Code that consumes implementations of this interface should expect one of two things:
29+
/// <list type = "number">
30+
/// <item>When referencing the interface from within the same solution (project reference), you will still see the methods this interface is meant to hide.</item>
31+
/// <item>When referencing the interface through the compiled output assembly (external reference), the standard Object methods will be hidden as intended.</item>
32+
/// </list>
33+
/// See http://bit.ly/ifluentinterface for more information.
34+
/// </remarks>
35+
/// <nuget id="IFluentInterface" />
36+
[EditorBrowsable(EditorBrowsableState.Never)]
37+
public interface IFluentInterface
38+
{
39+
/// <summary>
40+
/// Redeclaration that hides the <see cref="object.GetType()"/> method from IntelliSense.
41+
/// </summary>
42+
[EditorBrowsable(EditorBrowsableState.Never)]
43+
Type GetType();
44+
45+
/// <summary>
46+
/// Redeclaration that hides the <see cref="object.GetHashCode()"/> method from IntelliSense.
47+
/// </summary>
48+
[EditorBrowsable(EditorBrowsableState.Never)]
49+
int GetHashCode();
50+
51+
/// <summary>
52+
/// Redeclaration that hides the <see cref="object.ToString()"/> method from IntelliSense.
53+
/// </summary>
54+
[EditorBrowsable(EditorBrowsableState.Never)]
55+
string ToString();
56+
57+
/// <summary>
58+
/// Redeclaration that hides the <see cref="object.Equals(object)"/> method from IntelliSense.
59+
/// </summary>
60+
[EditorBrowsable(EditorBrowsableState.Never)]
61+
bool Equals(object obj);
62+
}
63+
}

spikes/v5/Moq.Sdk/Moq.Sdk.csproj

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{5967E307-A008-4EDB-B2DB-A97A1B9B1956}</ProjectGuid>
9+
<OutputType>Library</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>Moq</RootNamespace>
12+
<AssemblyName>Moq.Sdk</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\..\src\</SolutionDir>
16+
<RestorePackages>true</RestorePackages>
17+
</PropertyGroup>
18+
<Import Project="..\Solution Items\Moq.properties" />
19+
<ItemGroup>
20+
<Reference Include="System" />
21+
<Reference Include="System.Core" />
22+
<Reference Include="Microsoft.CSharp" />
23+
<Reference Include="System.Web" />
24+
<Reference Include="System.XML" />
25+
<Reference Include="System.Xml.Linq" />
26+
</ItemGroup>
27+
<ItemGroup>
28+
<Compile Include="..\Solution Items\GlobalAssemblyInfo.cs">
29+
<Link>Properties\GlobalAssemblyInfo.cs</Link>
30+
</Compile>
31+
<Compile Include="IFluentInterface.cs" />
32+
<Compile Include="netfx\System\Guard.cs" />
33+
<Compile Include="Sdk\BaseMock.cs" />
34+
<Compile Include="Sdk\Behaviors\CallBase.cs" />
35+
<Compile Include="Sdk\BehaviorSettings.cs" />
36+
<Compile Include="Sdk\DefaultSelectorFactory.cs" />
37+
<Compile Include="Sdk\IBehavior.cs" />
38+
<Compile Include="Sdk\IBehaviorSelectorFactory.cs" />
39+
<Compile Include="Sdk\DefaultBehaviorSelector.cs" />
40+
<Compile Include="Sdk\IBehaviorSelector.cs" />
41+
<Compile Include="Sdk\IBehaviorSettings.cs" />
42+
<Compile Include="Sdk\IMock.cs" />
43+
<Compile Include="Sdk\IMocked.cs" />
44+
<Compile Include="Sdk\Behaviors\ReturnSingleValue.cs" />
45+
<Compile Include="Sdk\PexProtector.cs" />
46+
<Compile Include="Properties\AssemblyInfo.cs" />
47+
<Compile Include="Properties\Resources.Designer.cs">
48+
<AutoGen>True</AutoGen>
49+
<DesignTime>True</DesignTime>
50+
<DependentUpon>Resources.resx</DependentUpon>
51+
</Compile>
52+
<Compile Include="Properties\Resources.Strings.cs">
53+
<AutoGen>True</AutoGen>
54+
<DesignTime>True</DesignTime>
55+
<DependentUpon>Resources.tt</DependentUpon>
56+
</Compile>
57+
<Compile Include="Sdk\Arguments\AnyValueMatcher.cs" />
58+
<Compile Include="Sdk\Arguments\ConstantMatcher.cs" />
59+
<Compile Include="Sdk\AspectAction.cs" />
60+
<Compile Include="Sdk\Behaviors\ReturnDefaultValue.cs" />
61+
<Compile Include="Sdk\CallContext.cs" />
62+
<Compile Include="Sdk\ContextData.cs" />
63+
<Compile Include="Sdk\DefaultValue.cs" />
64+
<Compile Include="Sdk\IArgumentMatcher.cs" />
65+
<Compile Include="Sdk\IAspect.cs" />
66+
<Compile Include="Sdk\Behavior.cs" />
67+
<Compile Include="Sdk\IInvocation.cs" />
68+
<Compile Include="Sdk\IProxied.cs" />
69+
<Compile Include="Sdk\IProxyFactory.cs" />
70+
<Compile Include="Sdk\SetupScope.cs" />
71+
</ItemGroup>
72+
<ItemGroup>
73+
<None Include="..\Solution Items\Moq.licenseheader">
74+
<Link>Moq.licenseheader</Link>
75+
</None>
76+
<None Include="ilmerge.exclude" />
77+
<None Include="packages.config" />
78+
<None Include="Properties\Resources.tt">
79+
<Generator>TextTemplatingFileGenerator</Generator>
80+
<LastGenOutput>Resources.Strings.cs</LastGenOutput>
81+
</None>
82+
</ItemGroup>
83+
<ItemGroup>
84+
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
85+
</ItemGroup>
86+
<ItemGroup>
87+
<EmbeddedResource Include="Properties\Resources.resx">
88+
<Generator>ResXFileCodeGenerator</Generator>
89+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
90+
</EmbeddedResource>
91+
</ItemGroup>
92+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
93+
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
94+
<Import Project="..\Solution Items\Moq.targets" />
95+
</Project>

0 commit comments

Comments
 (0)