Skip to content

Commit

Permalink
Removed Compilation Warnings in Test
Browse files Browse the repository at this point in the history
  • Loading branch information
odytrice committed Nov 15, 2016
1 parent c9ec64f commit a41b042
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -242,4 +242,7 @@ ModelManifest.xml
.paket/paket.exe

# FAKE - F# Make
.fake/
.fake/

# Visual Studio Code
.vscode
6 changes: 4 additions & 2 deletions test/Tests/ExtensionsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public void AllWithFailure()
var op1 = Operation.Create(() => "Hello");
var op2 = Operation.Create(() =>
{
throw new Exception("Something Bad Happened");
bool isUserAGoat = false;
if(!isUserAGoat) throw new Exception("Something Bad Happened");
return "";
});

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

Expand Down

0 comments on commit a41b042

Please sign in to comment.