Examples and Unitary Tests for Exception_ReachBadAPI.
#include <gtest/gtest.h>
#include <SA/Collections/Debug>
namespace SA::UT::Exc_ReachBadAPI
{
TEST(Exception, ReachBadAPI)
{
EXPECT_THROW(
SA_THROW((ReachBadAPI, MyAPI), SA.UnitTests.Exception), Exception_ReachBadAPI);
EXPECT_THROW(
SA_THROW((QueryBadAPIObject, MyAPI), SA.UnitTests.Exception), Exception_QueryBadAPIObject);
}
}
#define SA_THROW((_type, _params...)
Sapphire Throw macro.
Definition AssertMacro.hpp:91