Skip to content

Commit

Permalink
Update test_consumer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunal-Chauhan authored Sep 30, 2020
1 parent 6f3e713 commit 5492492
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

//including library files
#include <hippomocks.h>
#include <catch/catch.hpp>

#include <consumer.h>

#ifdef _HIPPOMOCKS__ENABLE_CFUNC_MOCKING_SUPPORT

//defining the test case for failure
TEST_CASE("consumer: failure")
{
MockRepository mocks;
Expand All @@ -38,6 +38,7 @@ TEST_CASE("consumer: failure")

CHECK_THROWS(consumer{p});
}
//defining the test case for success

TEST_CASE("consumer: success")
{
Expand Down

0 comments on commit 5492492

Please sign in to comment.