From a41b04212e032613cb1792be103e2032be878e4d Mon Sep 17 00:00:00 2001 From: Ody Mbegbu Date: Tue, 15 Nov 2016 12:29:36 +0100 Subject: [PATCH] Removed Compilation Warnings in Test --- .gitignore | 5 ++++- test/Tests/ExtensionsTest.cs | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 3a2238d..1bb4542 100644 --- a/.gitignore +++ b/.gitignore @@ -242,4 +242,7 @@ ModelManifest.xml .paket/paket.exe # FAKE - F# Make -.fake/ \ No newline at end of file +.fake/ + +# Visual Studio Code +.vscode \ No newline at end of file diff --git a/test/Tests/ExtensionsTest.cs b/test/Tests/ExtensionsTest.cs index 61661fd..f01c84d 100644 --- a/test/Tests/ExtensionsTest.cs +++ b/test/Tests/ExtensionsTest.cs @@ -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 ""; }); @@ -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 ""; });