This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Standard rules of Conway's Game of Life | |
Background: | |
Given Standard Conway's Game of Life Rules | |
Scenario Outline: A live cell | |
Given There are <neighborCount> live neighbors of a living cell | |
When the timer ticks | |
Then the cell will be <result> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ExpensiveFactAttribute : FactAttribute | |
{ | |
public ExpensiveFactAttribute() | |
{ | |
// remove this line to run these expensive tests | |
base.Skip = "Expensive"; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using (progress.Start(4 + items.Count())) | |
{ | |
DoWork(); | |
progress.ReportWork(); | |
DoHeavyLifting(items); | |
progress.ReportWork(items.Count()); | |
DoMoreWork(); | |
progress.ReportWork(3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<SolutionPath>InspectCodeExample\InspectCodeExample.sln</SolutionPath> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- keep this in synch with Tools\PreBuild.ps1 --> | |
<ResharperCltVersion>8.2.0.2151</ResharperCltVersion> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# keep this in synch with TeamBuild.proj | |
# | |
$ResharperCltVersion='8.2.0.2151' | |
# UseBasicParsing is required if IE has never been run on the machine. | |
wget -UseBasicParsing chocolatey.org/install.ps1 | iex | |
if (!$?) { throw "failed to install chocolatey"} | |
cinst resharper-clt.portable -version $ResharperCltVersion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DateTimeHelpers | |
{ | |
public static readonly DateTime Tomorrow; | |
static DateTimeHelpers() | |
{ | |
Thread.Sleep(24*60*60*1000); | |
Tomorrow = DateTime.Now; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
IOperation operation; | |
switch (args[0]) | |
{ | |
case "foo": | |
{ | |
operation = new FooOperation(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
switch (args[0]) | |
{ | |
case "foo": | |
{ | |
IOperation operation = new FooOperation(); | |
operation.Do(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dev | |
http://boxstarter.org/package/sysinternals,resharper,ncrunch,git,poshgit | |
# desktop | |
http://boxstarter.org/package/lastpass,googlechrome,skype,steam,putty,dotnet35 | |
# kids | |
http://boxstarter.org/package/minecraft,vlc | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If provided, get and log the response from the remote host. | |
var response = string.Empty; | |
if (ex.Response != null) | |
{ | |
using (var readerStream = new StreamReader(ex.Response.GetResponseStream())) | |
{ | |
response = readerStream.ReadToEnd().Trim(); | |
logger.Error("Error response:"); | |
logger.Error(response); | |
} |
OlderNewer