Skip to content

Commit

Permalink
Merge pull request #39 from ivanz/iz-nsubstitute-fakeiteasy
Browse files Browse the repository at this point in the history
Pull in latest stable version with .NET Standard support for NSubstit…
  • Loading branch information
ivanz committed Mar 12, 2017
2 parents bcd734f + e0b09c8 commit 78d1da6
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 59 deletions.
Expand Up @@ -12,7 +12,7 @@



#if !NETSTANDARD
#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.Rhinomocks
Expand Down Expand Up @@ -51,13 +51,12 @@ public class Given_an_exception_configured_on_a_command_when_triggering_the_beha
}
}

#endif
#endif





#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.NSubstitute
Expand Down Expand Up @@ -96,7 +95,6 @@ public class Given_an_exception_configured_on_a_command_when_triggering_the_beha
}
}

#endif



Expand Down Expand Up @@ -145,8 +143,6 @@ public class Given_an_exception_configured_on_a_command_when_triggering_the_beha



#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.FakeItEasy
{
Expand Down Expand Up @@ -184,6 +180,5 @@ public class Given_an_exception_configured_on_a_command_when_triggering_the_beha
}
}

#endif


7 changes: 0 additions & 7 deletions Source/Machine.Fakes.Adapters.Specs/EngineSpecs.generated.cs
Expand Up @@ -120,8 +120,6 @@ public class When_faking_a_delegate : WithCurrentEngine<RhinoFakeEngine>
#endif


#if !NETSTANDARD

namespace Machine.Fakes.Adapters.Specs.NSubstitute
{

Expand Down Expand Up @@ -234,7 +232,6 @@ public class When_faking_a_delegate : WithCurrentEngine<NSubstituteEngine>
}
}

#endif



Expand Down Expand Up @@ -352,7 +349,6 @@ public class When_faking_a_delegate : WithCurrentEngine<MoqFakeEngine>



#if !NETSTANDARD

namespace Machine.Fakes.Adapters.Specs.FakeItEasy
{
Expand Down Expand Up @@ -466,6 +462,3 @@ public class When_faking_a_delegate : WithCurrentEngine<FakeItEasyEngine>
}
}

#endif


Expand Up @@ -10,7 +10,7 @@
using Machine.Specifications;


#if !NETSTANDARD
#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.Rhinomocks
Expand Down Expand Up @@ -354,12 +354,11 @@ public class When_matching_for_equality_without_explicit__Param__constraint_and_
}
}

#endif
#endif




#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.NSubstitute
Expand Down Expand Up @@ -703,7 +702,6 @@ public class When_matching_for_equality_without_explicit__Param__constraint_and_
}
}

#endif



Expand Down Expand Up @@ -1055,7 +1053,6 @@ public class When_matching_for_equality_without_explicit__Param__constraint_and_



#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.FakeItEasy
Expand Down Expand Up @@ -1399,6 +1396,4 @@ public class When_matching_for_equality_without_explicit__Param__constraint_and_
}
}

#endif


Expand Up @@ -11,7 +11,7 @@
using Machine.Specifications;


#if !NETSTANDARD
#if !NETSTANDARD



Expand Down Expand Up @@ -139,11 +139,10 @@ public class Given_a_command_was_configured_on_a_fake_when_verifying_whether_it_
}
}

#endif
#endif



#if !NETSTANDARD



Expand Down Expand Up @@ -271,7 +270,6 @@ public class Given_a_command_was_configured_on_a_fake_when_verifying_whether_it_
}
}

#endif



Expand Down Expand Up @@ -405,8 +403,6 @@ public class Given_a_command_was_configured_on_a_fake_when_verifying_whether_it_



#if !NETSTANDARD



namespace Machine.Fakes.Adapters.Specs.FakeItEasy
Expand Down Expand Up @@ -533,5 +529,4 @@ public class Given_a_command_was_configured_on_a_fake_when_verifying_whether_it_
}
}

#endif

Expand Up @@ -10,8 +10,8 @@
using Machine.Specifications;



#if !NETSTANDARD

#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.Rhinomocks
Expand Down Expand Up @@ -76,12 +76,10 @@ public class When_setting_up_a_return_value_for_a_property_with_getter_and_sette
}
}

#endif
#endif




#if !NETSTANDARD


namespace Machine.Fakes.Adapters.Specs.NSubstitute
Expand Down Expand Up @@ -146,11 +144,10 @@ public class When_setting_up_a_return_value_for_a_property_with_getter_and_sette
}
}

#endif







namespace Machine.Fakes.Adapters.Specs.Moq
Expand Down Expand Up @@ -218,8 +215,7 @@ public class When_setting_up_a_return_value_for_a_property_with_getter_and_sette




#if !NETSTANDARD



namespace Machine.Fakes.Adapters.Specs.FakeItEasy
Expand Down Expand Up @@ -284,6 +280,5 @@ public class When_setting_up_a_return_value_for_a_property_with_getter_and_sette
}
}

#endif


Expand Up @@ -12,7 +12,7 @@
using Machine.Specifications;


#if !NETSTANDARD
#if !NETSTANDARD



Expand Down Expand Up @@ -96,12 +96,11 @@ public class Given_an_exception_configured_on_a_query_when_triggering_the_behavi
}
}

#endif
#endif




#if !NETSTANDARD



Expand Down Expand Up @@ -185,8 +184,6 @@ public class Given_an_exception_configured_on_a_query_when_triggering_the_behavi
}
}

#endif




Expand Down Expand Up @@ -277,7 +274,6 @@ public class Given_an_exception_configured_on_a_query_when_triggering_the_behavi



#if !NETSTANDARD



Expand Down Expand Up @@ -361,6 +357,5 @@ public class Given_an_exception_configured_on_a_query_when_triggering_the_behavi
}
}

#endif


12 changes: 6 additions & 6 deletions Source/Machine.Fakes.Adapters.Specs/project.json
Expand Up @@ -18,12 +18,6 @@
},
"Machine.Fakes.Rhinomocks": {
"target": "project"
},
"Machine.Fakes.NSubstitute": {
"target": "project"
},
"Machine.Fakes.FakeItEasy": {
"target": "project"
}
}
},
Expand All @@ -48,6 +42,12 @@
"dotnet-test-mspec": "0.2-*",
"Machine.Fakes.Moq": {
"target": "project"
},
"Machine.Fakes.NSubstitute": {
"target": "project"
},
"Machine.Fakes.FakeItEasy": {
"target": "project"
}
}
}
1 change: 1 addition & 0 deletions Source/Machine.Fakes.FakeItEasy/FakeItEasyEngine.cs
Expand Up @@ -2,6 +2,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;

using FakeItEasy;
using FakeItEasy.Creation;
Expand Down
9 changes: 7 additions & 2 deletions Source/Machine.Fakes.FakeItEasy/project.json
Expand Up @@ -15,12 +15,17 @@
"Machine Project"
],
"frameworks": {
"net40": {}
"net40": {},
"netstandard1.6": {
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
},
"dependencies": {
"Machine.Fakes": {
"target": "project"
},
"FakeItEasy": "2.0.0"
"FakeItEasy": "3.1.0"
}
}
9 changes: 7 additions & 2 deletions Source/Machine.Fakes.NSubstitute/project.json
Expand Up @@ -15,12 +15,17 @@
"Machine Project"
],
"frameworks": {
"net40": {}
"net40": {},
"netstandard1.5": {
"dependencies": {
"NETStandard.Library": "1.6.0"
}
}
},
"dependencies": {
"Machine.Fakes": {
"target": "project"
},
"NSubstitute": "1.8.2"
"NSubstitute": "2.0.2"
}
}
7 changes: 3 additions & 4 deletions appveyor.yml
@@ -1,13 +1,12 @@
environment:
nuget_version: '2.8.0-beta4'
nuget_prerelease: true
nuget_version: '2.8.0'
nuget_prerelease: false
assembly_version: '2.8.0.0'

deploy:
- provider: GitHub
description: |
* Support for .NET Standard 1.3 and NET Core. (only the Moq adaptor support .NET Standard)
* Beta due to Machine.Specifications being in -rc1 and Moq for .NET Standard in alpha
* .NET Core / .NET Standard support for NSubstitute, FakeItEasy and Moq.
on:
appveyor_repo_tag: true
Expand Down

0 comments on commit 78d1da6

Please sign in to comment.