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
[TestMethod] | |
public void GetContextId_OnSecondRun_ReturnsStoredContextId() // "should" is a grey phrase | |
{ | |
const string firstId = "200"; // context is used a lot in the test - removed here | |
const string secondId = "400"; // and i isolate these from my arrange for readability | |
// arrange | |
var record = new ContextRecord(); | |
fakeRecordGenerator.Generate().Returns(record); // overuse of "Record" in here? necessary? | |
fakeContextService.CreateContext(record).Returns(firstId); |
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
$dontcare = git fetch origin --prune | |
$branches = git branch -a --merged | | |
?{$_ -match "remotes\/origin"} | | |
?{$_ -notmatch "\/master"} | | |
%{$_.Replace("remotes/origin/", "").Trim() } | |
if (-not $branches) { | |
echo "No merged branches detected" | |
exit 0 | |
} |