Skip to content

Commit fb67c00

Browse files
committed
Upgraded NSubstitute to 2.0.0-alpha003 with support for .Net Core
1 parent 7f4a755 commit fb67c00

File tree

7 files changed

+24
-36
lines changed

7 files changed

+24
-36
lines changed

src/TestStack.BDDfy.Tests/Reporters/Diagnostics/DiagnosticsReportBuilderTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if NSubstitute
2-
using NSubstitute;
1+
using NSubstitute;
32
using TestStack.BDDfy.Reporters;
43
using TestStack.BDDfy.Reporters.Diagnostics;
54
using TestStack.BDDfy.Reporters.Serializers;
@@ -22,5 +21,4 @@ public void ShouldSerializeDiagnosticDataToSpecifiedFormat()
2221
serializer.Received().Serialize(Arg.Any<object>());
2322
}
2423
}
25-
}
26-
#endif
24+
}

src/TestStack.BDDfy.Tests/Reporters/Diagnostics/DiagnosticsReporterTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if NSubstitute
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using NSubstitute;
54
using TestStack.BDDfy.Reporters;
@@ -46,5 +45,4 @@ private DiagnosticsReporter CreateSut()
4645
return new DiagnosticsReporter(_builder, _writer);
4746
}
4847
}
49-
}
50-
#endif
48+
}

src/TestStack.BDDfy.Tests/Reporters/Html/HtmlReporterTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if NSubstitute
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using NSubstitute;
54
using Shouldly;
@@ -99,5 +98,4 @@ public void ShouldNotLoadCustomJavascriptIfNoneExist()
9998
_sut.FileReader.DidNotReceive().Read(customJavascript);
10099
}
101100
}
102-
}
103-
#endif
101+
}

src/TestStack.BDDfy.Tests/Reporters/Html/TestableHtmlReporter.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#if NSubstitute
21
using NSubstitute;
32
using TestStack.BDDfy.Reporters;
43
using TestStack.BDDfy.Reporters.Html;
@@ -30,5 +29,4 @@ public static TestableHtmlReporter Create()
3029
Substitute.For<IReportWriter>(), Substitute.For<IFileReader>());
3130
}
3231
}
33-
}
34-
#endif
32+
}

src/TestStack.BDDfy.Tests/Reporters/MarkDown/MarkDownReporterTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if NSubstitute
2-
using System;
1+
using System;
32
using System.Collections.Generic;
43
using NSubstitute;
54
using TestStack.BDDfy.Reporters;
@@ -46,5 +45,4 @@ private MarkDownReporter CreateSut()
4645
return new MarkDownReporter(_builder, _writer);
4746
}
4847
}
49-
}
50-
#endif
48+
}

src/TestStack.BDDfy.Tests/Scanner/FluentScanner/DoesNotConflictWithnSubstitute.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#if NSubstitute
2-
using NSubstitute;
1+
using NSubstitute;
32
using Xunit;
43

54
namespace TestStack.BDDfy.Tests.Scanner.FluentScanner
@@ -34,5 +33,4 @@ private void GivenSomeStuff()
3433
_subsitute = Substitute.For<ITestContext>();
3534
}
3635
}
37-
}
38-
#endif
36+
}

src/TestStack.BDDfy.Tests/project.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
2-
"dependencies": {
3-
"Shouldly": "2.8.0",
4-
"TestStack.BDDfy": {
5-
"target": "project"
6-
},
7-
"Microsoft.NETCore.Platforms": "1.0.1",
8-
"xunit.core": "2.2.0-beta2-build3300",
9-
"dotnet-test-xunit": "2.2.0-preview2-build1029"
2+
"dependencies": {
3+
"Shouldly": "2.8.0",
4+
"TestStack.BDDfy": {
5+
"target": "project"
106
},
7+
"Microsoft.NETCore.Platforms": "1.0.1",
8+
"NSubstitute": "2.0.0-alpha003",
9+
"System.Diagnostics.TraceSource": "4.0.0",
10+
"xunit.core": "2.2.0-beta2-build3300",
11+
"dotnet-test-xunit": "2.2.0-preview2-build1029"
12+
},
1113
"frameworks": {
1214
"netcoreapp1.0": {
1315
"dependencies": {
@@ -23,14 +25,12 @@
2325
]
2426
},
2527
"net46": {
26-
"dependencies": {
27-
"NSubstitute": "1.10.0"
28-
},
28+
"dependencies": {
29+
},
2930
"buildOptions": {
3031
"define": [
3132
"Approvals",
32-
"Culture",
33-
"NSubstitute"
33+
"Culture"
3434
]
3535
}
3636
}

0 commit comments

Comments
 (0)