Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
110-Fix-ClassFixture.cpp File Reference
#include <catch2/catch.hpp>
Include dependency graph for 110-Fix-ClassFixture.cpp:

Go to the source code of this file.

Classes

class  DBConnection
 
class  UniqueTestsFixture
 

Functions

 TEST_CASE_METHOD (UniqueTestsFixture, "Create Employee/No Name", "[create]")
 
 TEST_CASE_METHOD (UniqueTestsFixture, "Create Employee/Normal", "[create]")
 

Function Documentation

◆ TEST_CASE_METHOD() [1/2]

TEST_CASE_METHOD ( UniqueTestsFixture ,
"Create Employee/No Name" ,
"" [create] )

Definition at line 46 of file 110-Fix-ClassFixture.cpp.

46 {
47 REQUIRE_THROWS( conn.executeSQL( "INSERT INTO employee (id, name) VALUES (?, ?)", getID(), "") );
48}
#define REQUIRE_THROWS(...)
Definition catch.hpp:188

◆ TEST_CASE_METHOD() [2/2]

TEST_CASE_METHOD ( UniqueTestsFixture ,
"Create Employee/Normal" ,
"" [create] )

Definition at line 50 of file 110-Fix-ClassFixture.cpp.

50 {
51 REQUIRE( conn.executeSQL( "INSERT INTO employee (id, name) VALUES (?, ?)", getID(), "Joe Bloggs" ) );
52}
#define REQUIRE(...)
Definition catch.hpp:185