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
With all steps passing: | |
TestAssemblyStarting | |
TestCollectionStarting | |
TestClassStarting | |
TestMethodStarting | |
TestCaseStarting | |
TestStarting | |
TestPassed | |
TestFinished |
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
#gist 0dca8b3a74958f82406a | |
var pinger = new Pinger(); | |
pinger.Ping(); | |
Console.WriteLine("done!"); |
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
C:\code\Particular\NServiceBus.RabbitMQ-Issue-102\Sample\bin\Debug [master]> .\Sample.exe | |
2015-10-05 18:17:18.520 INFO DefaultFactory Logging to 'C:\code\Particular\NServiceBus.RabbitMQ-Issue-102\Sample\bin\Debug\' with level Info | |
2015-10-05 18:17:18.565 INFO NServiceBus.Persistence.PersistenceStartup Activating persistence 'InMemoryPersistence' to provide storage for 'NServiceBus.Persistence.StorageType+Sagas' storage. | |
2015-10-05 18:17:18.587 INFO NServiceBus.Persistence.PersistenceStartup Activating persistence 'InMemoryPersistence' to provide storage for 'NServiceBus.Persistence.StorageType+Timeouts' storage. | |
2015-10-05 18:17:18.607 INFO NServiceBus.Persistence.PersistenceStartup Activating persistence 'InMemoryPersistence' to provide storage for 'NServiceBus.Persistence.StorageType+Subscriptions' storage. | |
2015-10-05 18:17:18.626 INFO NServiceBus.Persistence.PersistenceStartup Activating persistence 'InMemoryPersistence' to provide storage for 'NServiceBus.Persistence.StorageType+Outbox' storage. | |
2015 |
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 Different | |
{ | |
private ISomething something; | |
public Different(ISomethingProvider somethingProvider) | |
{ | |
this.something = somethingProvider.Provide(); | |
} | |
} |
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] | |
public static void GettingACollection | |
{ | |
var provider = default(CollectionProvider); | |
var collection = default(Collection); | |
"Given a collection provider" | |
.Given(() => provider = new CollectionProvider()); | |
"When getting a collection" |
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 RuntimeFeature | |
{ | |
[Scenario] | |
public void ApplyDependentCalculation() | |
{ | |
int _left1; | |
int _right1; | |
int _left2; | |
Variable _outputVariable1; | |
Variable _outputVariable2; |
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 IntervalFeature | |
{ | |
[Scenario] | |
public void ComparisonUsingLinq() | |
{ | |
var result = | |
from left in "Given an interval".Of(Interval.WholeStep) | |
from right in "And a smaller interval".Of(Interval.HalfStep) | |
select "When comparing the intervals".Do(left.CompareTo(right)); |
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
Hi, | |
In my github pages site I have some code which generates excerpts from posts https://github.com/adamralph/adamralph.github.com/blob/master/index.html#L13 | |
This worked on 6th Jan, which was the last time I pushed a change before today. | |
However, after pushing an unrelated change today, the code has stopped working. Instead of an excerpt, the entire post is shown - see http://www.adamralph.com/ | |
Another user has also reported the same problem with his site and has temporarily removed his excerpts code, the diff is at https://github.com/alfhenrik/henri.kandersson.com/commit/b60804d36e203f14af312e08f4c2e5b566cc9fc8#L0L15 |
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] | |
[Example(typeof(int), 0)] | |
[Example(typeof(object), null)] | |
public static void GeneratedDefaultValue<TValue> | |
(Type type, TValue expectedValue, Argument argument) | |
{ | |
"Given the type {0}" | |
.Given(() => { }); | |
"When constructing an argument using the type" |
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] | |
public void PushingAnElementOntoAStack() // No parameters :-D | |
{ | |
"Given an element" | |
.Given(scenario => scenario.Element = 11); | |
"And a stack" | |
.And(scenario => scenario.Stack = new Stack<int>()); | |
"When pushing the element onto the stack" |