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
<!-- example msbuild target --> | |
<Target Name="TranslateCoverageXml"> | |
<ItemGroup> | |
<CoverageFiles Include="$(TestsDir)\*.opencover" /> | |
</ItemGroup> | |
<XslTransformation XmlInputPaths="%(CoverageFiles.Identity)" | |
XslInputPath="$(MSBuildProjectDirectory)\opencover_to_ncover.xslt" | |
OutputPaths="$(TestsDir)\%(CoverageFiles.FileName).ncover.xml" /> |
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
Greg's Stop Loss Kata | |
Testing is very hard when time is involved ... | |
A trailing stop loss is a term used in financial trading. For a very in depth explanation you can read here http://www.investopedia.com/articles/trading/03/080603.asp and http://en.wikipedia.org/wiki/Order_(exchange)#Stop_orders | |
However we do not need a huge amount of background in order to do the kata as we are going to limit the problem a bit. | |
The general idea is that when you buy into a stock at a price say $10. You want it to automatically get sold if the stock goes below $9 (-$1). If we use the term "trailing" that means that id the price goes up to $11 then the sell point becomes $10. |