Skip to content

Commit

Permalink
Cleaned Up Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
odytrice committed Nov 15, 2016
1 parent a41b042 commit 8c4a169
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/Tests/ExtensionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public void AllWithFailure()
var op1 = Operation.Create(() => "Hello");
var op2 = Operation.Create(() =>
{
bool isUserAGoat = false;
if(!isUserAGoat) throw new Exception("Something Bad Happened");
var condition = true; //Prevent "Unreachable Code Detected"
if(condition) throw new Exception("Something Bad Happened");
return "";
});

Expand Down Expand Up @@ -92,8 +92,8 @@ public void GenericAllWithFailure()
var op1 = Operation.Create(() => "Hello");
var op2 = Operation.Create(() =>
{
bool isUserAGoat = false;
if(!isUserAGoat) throw new Exception("Something Bad Happened");
var condition = true; //Prevent "Unreachable Code Detected"
if(condition) throw new Exception("Something Bad Happened");
return "";
});

Expand Down

0 comments on commit 8c4a169

Please sign in to comment.