9#if !defined(__XTD_EXPERIMENTAL_GTEST_HELPERS__)
10#error "Do not use this file: it is for experimental purposes only"
15 void InitGoogleTest(
int argc,
char* argv[]) {InitGoogleTest();}
18#define ASSERT_EQ(val1, val2) xtd::tunit::assert::are_equal(val1, val2, csf_)
19#define ASSERT_NE(val1, val2) xtd::tunit::assert::are_not_equal(val1, val2, csf_)
20#define ASSERT_FALSE(condition) xtd::tunit::assert::is_false(condition, csf_)
21#define ASSERT_TRUE(condition) xtd::tunit::assert::is_true(condition, csf_)
23#define EXPECT_FALSE(condition) xtd::tunit::assume::is_false(condition, csf_)
24#define EXPECT_TRUE(condition) xtd::tunit::assume::is_true(condition, csf_)
26#define RUN_ALL_TESTS xtd::tunit::console_unit_test().run
28#define TEST(class_name, method_name) \
29 void __##class_name##method_name(); \
30 class __class_##class_name##_##method_name; \
31 xtd::tunit::test_class_attribute<__class_##class_name##_##method_name> __class_##class_name##_##method_name##_attr {typeof_<__class_##class_name##_##method_name>().full_name().replace(typeof_<__class_##class_name##_##method_name>().name(), xtd::string::empty_string) + #class_name}; \
32 class __class_##class_name##_##method_name : public xtd::tunit::test_class { \
33 xtd::tunit::test_method_attribute __class_##class_name##_##method_name##_method {#method_name, *this, &__class_##class_name##_##method_name::__method}; \
35 if (xtd::string {#method_name}.starts_with("DISABLED_")) xtd::tunit::assert::ignore();\
36 __##class_name##method_name(); \
39 void __##class_name##method_name()
static xtd::tunit::settings & default_settings() noexcept
Gets default settings instance.
bool gtest_compatibility() const noexcept
Gets google test comaptibility.
Contains xtd.tunit library headers.