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
Extensions/* | |
ActivateApplication.exe | |
EntityFramework.dll | |
Microsoft.TeamFoundation.TestPlatform.Client.dll | |
Microsoft.TestTools.Cpp.targets | |
Microsoft.VisualStudio.MSTest.TestWindow.dll | |
Microsoft.VisualStudio.TestPlatform.BuildTasks.dll | |
Microsoft.VisualStudio.TestPlatform.Client.dll | |
Microsoft.VisualStudio.TestPlatform.Common.dll | |
Microsoft.VisualStudio.TestPlatform.Core.dll |
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
void Main() | |
{ | |
GetExpression().Compile()(new Foo { Bar = new Bar { Abc = "A" }}).Dump(); | |
GetExpression().Compile()(new Foo { Bar = new Bar { Abc = "B" }}).Dump(); | |
} | |
Expression<Func<Foo, bool>> GetExpression() | |
{ | |
// Method takes Foo and uses an expression to first retrieve Bar |
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
//https://github.com/cucumber/cucumber/wiki/Scenario-Outlines | |
//Scenario: eat 5 out of 20 | |
// Given there are 20 cucumbers | |
// When I eat 5 cucumbers | |
// Then I should have 15 cucumbers | |
//Scenario Outline: eating | |
// Given there are <start> cucumbers | |
// When I eat <eat> cucumbers | |
// Then I should have <left> cucumbers |
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
public class ReflectiveExamples | |
{ | |
public int Start { get; set; } | |
public int Eat { get; set; } | |
public int Left { get; set; } | |
//Scenario Outline: eating | |
// Given there are <start> cucumbers | |
// When I eat <eat> cucumbers | |
// Then I should have <left> cucumbers |
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
Scenario: Fluent can be used with examples | |
Given method taking <example int> | |
Given method taking <prop 1> | |
Given a different method with random arg 2 | |
Given a different method with <prop 2> | |
When method using <example string> | |
Then all is good | |
Examples: |
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
// Start with a nUnit Test case | |
[TestCase(Foo.Bar, Foo.Baz, Foo.Qux)] | |
[TestCase(Foo.Baz, Foo.Qux, Foo.Bar)] | |
public void MyTest(Foo givenArg, Foo whenArg, Foo thenArg) | |
{ | |
this.Given(_ => GivenSomething(givenArg)) | |
.When(_ => WhenSomething(whenArg)) | |
.Then(_ => ThenSomething(thenArg)) | |
.BDDfy(); | |
} |
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
void Main() | |
{ | |
this.Given(_ => TheBuyerIsA(_buyerCategory)) | |
.And(_ => TheBuyerSelectsA(fare)) | |
.When(_ => TheBuyerPays()) | |
.Then(_ => ASaleOccursWithAnAmountOf(Price)) | |
.WithExamples(new ExampleTable( | |
"Buyer Category", "Fare", "Price") | |
{ | |
{ BuyerCategory.Student, new MonthlyPass(), new Currency(76) }, |
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
git config option merge.tool set to unknown tool: --global | |
Resetting to default... | |
This message is displayed because 'merge.tool' is not configured. | |
See 'git mergetool --tool-help' or 'git help config' for more details. | |
'git mergetool' will now attempt to use one of the following tools: | |
tortoisemerge emerge vimdiff | |
No known merge tool is available. |
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
[alias] | |
a = add -A | |
abort = rebase --abort | |
amend = commit --amend -C HEAD | |
bl = blame -w -M -C | |
br = branch | |
cat = cat-file -t | |
ci = commit -a | |
co = checkout | |
df = diff --word-diff=color --word-diff-regex=. -w --patience |
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
function Prune-Local-Branches() { | |
git branch --merged master | grep -v 'master$' | xargs git branch -d | |
} |
OlderNewer