Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 969d4de

Browse files
committed
Cleanup and encoding fixes.
1 parent 126821d commit 969d4de

File tree

5 files changed

+32
-153
lines changed

5 files changed

+32
-153
lines changed

Machine.Specifications.ConsoleRunner.Specs/ProgramSpecs.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.IO;
33
using System.Linq;
44
using System.Reflection;
@@ -37,9 +37,9 @@ public class when_running_a_specification_assembly
3737

3838
It should_write_the_specifications =
3939
() => console.Lines.Should().Contain(
40-
"» should debit the from account by the amount transferred",
41-
"» should credit the to account by the amount transferred",
42-
"» should not allow the transfer");
40+
"» should debit the from account by the amount transferred",
41+
"» should credit the to account by the amount transferred",
42+
"» should not allow the transfer");
4343

4444
It should_write_the_contexts =
4545
() => console.Lines.Should().Contain(
@@ -71,7 +71,7 @@ public class when_running_a_specification_assembly_and_silent_is_set
7171
() => console.Lines.Should().Match(l => !l.All(_ => _.StartsWith("Account Funds transfer")));
7272

7373
It should_not_write_the_specifications =
74-
() => console.Lines.Should().Match(l => !l.All(_ => _.StartsWith("» should")));
74+
() => console.Lines.Should().Match(l => !l.All(_ => _.StartsWith("» should")));
7575

7676
It should_write_the_count_of_contexts =
7777
() => console.Lines.Should().Contain(l => l.Contains("Contexts: 3"));
@@ -97,7 +97,7 @@ public class when_running_a_specification_assembly_and_progress_is_set
9797
() => console.Lines.Should().Match(l => !l.All(_ => _.StartsWith("Account Funds transfer")));
9898

9999
It should_not_write_the_specifications =
100-
() => console.Lines.Should().Match(l => !l.All(_ => _.StartsWith("» should")));
100+
() => console.Lines.Should().Match(l => !l.All(_ => _.StartsWith("» should")));
101101

102102
It should_write_the_specification_results =
103103
() => console.Lines.Should().Contain("...***");
@@ -165,7 +165,7 @@ public class when_a_specification_fails_and_silent_is_set : ConsoleRunnerSpecs
165165
() => exitCode.Should().Be(ExitCode.Failure);
166166

167167
It should_write_a_summary_of_failing_specifications =
168-
() => console.Lines.Should().Contain("Failures:", "Scott Bellware, at any given moment", "» will fail (FAIL)");
168+
() => console.Lines.Should().Contain("Failures:", "Scott Bellware, at any given moment", "» will fail (FAIL)");
169169

170170
It should_write_failure_stack_traces =
171171
() => console.Lines.Should().Contain(l => l.Contains("hi scott, love you, miss you."));
@@ -192,7 +192,7 @@ public class when_a_specification_fails_and_progress_is_set : ConsoleRunnerSpecs
192192
() => exitCode.Should().Be(ExitCode.Failure);
193193

194194
It should_write_a_summary_of_failing_specifications =
195-
() => console.Lines.Should().Contain("Failures:", "Scott Bellware, at any given moment", "» will fail (FAIL)");
195+
() => console.Lines.Should().Contain("Failures:", "Scott Bellware, at any given moment", "» will fail (FAIL)");
196196

197197
It should_write_failure_stack_traces =
198198
() => console.Lines.Should().Contain(l => l.Contains("hi scott, love you, miss you."));
@@ -223,7 +223,7 @@ public class when_running_from_directory_different_from_assembly_location : Cons
223223
It should_pass_the_specification_which_depends_on_external_file = () =>
224224
console.Lines.Should().Contain(
225225
"External resources usage, when using file copied to assembly output directory",
226-
"» should be able to locate it by relative path");
226+
"» should be able to locate it by relative path");
227227

228228
It should_pass_all_specifications = () =>
229229
console.Lines.Should().NotContain("failed");

Machine.Specifications.ConsoleRunner/Machine.Specifications.ConsoleRunner.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
</ItemGroup>
130130
<ItemGroup>
131131
<None Include="App.config" />
132+
<None Include="Machine.Specifications.ConsoleRunner.targets" />
132133
<None Include="Machine.Specifications.Runner.Console.nuspec" />
133134
<None Include="packages.config">
134135
<SubType>Designer</SubType>

Machine.Specifications.ConsoleRunner/Outputs/VerboseOutput.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void ContextEnd(ContextInfo context)
4848

4949
public void SpecificationStart(SpecificationInfo specification)
5050
{
51-
_console.Write(" " + specification.Name);
51+
_console.Write("» " + specification.Name);
5252
}
5353

5454
public void Passing(SpecificationInfo specification)

Machine.Specifications.ConsoleRunner/RunListener.cs.orig

Lines changed: 0 additions & 141 deletions
This file was deleted.

Machine.Specifications.Runner.Console.sln

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.30110.0
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Machine.Specifications.ConsoleRunner", "Machine.Specifications.ConsoleRunner\Machine.Specifications.ConsoleRunner.csproj", "{CFF4B323-24C1-4B19-98CA-7DF92755458E}"
77
EndProject
@@ -25,6 +25,17 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.Issue157-Fail", "Ex
2525
EndProject
2626
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Example.Issue157-Success", "Example.Issue157-Success\Example.Issue157-Success.csproj", "{79F44A49-3516-40F3-AC67-91EFA57B8119}"
2727
EndProject
28+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{E204891A-0601-4CE0-96B0-654995E636D9}"
29+
EndProject
30+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build", "Build", "{DC1E07B3-1885-4633-9942-22E2CD5075CE}"
31+
ProjectSection(SolutionItems) = preProject
32+
.gitignore = .gitignore
33+
appveyor.yml = appveyor.yml
34+
License.txt = License.txt
35+
Machine.snk = Machine.snk
36+
README.md = README.md
37+
EndProjectSection
38+
EndProject
2839
Global
2940
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3041
Debug|Any CPU = Debug|Any CPU
@@ -67,4 +78,12 @@ Global
6778
GlobalSection(SolutionProperties) = preSolution
6879
HideSolutionNode = FALSE
6980
EndGlobalSection
81+
GlobalSection(NestedProjects) = preSolution
82+
{2C28C643-31A2-44CA-B762-953A963F6F61} = {E204891A-0601-4CE0-96B0-654995E636D9}
83+
{89ECD0D1-6CC4-4319-B1B2-389E0B48F40D} = {E204891A-0601-4CE0-96B0-654995E636D9}
84+
{2C33D385-9024-4346-8839-93CFF1AF227C} = {E204891A-0601-4CE0-96B0-654995E636D9}
85+
{A6B234F5-5D96-4809-BD25-86F6544BF838} = {E204891A-0601-4CE0-96B0-654995E636D9}
86+
{38AA3D5D-3708-4F7F-8738-5F2090B86FC0} = {E204891A-0601-4CE0-96B0-654995E636D9}
87+
{79F44A49-3516-40F3-AC67-91EFA57B8119} = {E204891A-0601-4CE0-96B0-654995E636D9}
88+
EndGlobalSection
7089
EndGlobal

0 commit comments

Comments
 (0)