Testing if unbind successfully.
149 {
150
152
154
156 test0.Bind(std::bind(&DelegateFuncTest::Test1));
157 test0.Bind([&]() {
return funcTestClass.
Test(); });
158 test0.Bind([&]() { return DelegateFuncTest::Test1(); });
160
161 EXPECT_EQ(test0.size(), 5);
162 EXPECT_EQ(test2.empty(), true);
163
164 test0.UnBind(std::bind((void(DelegateFuncTest::*)()) & DelegateFuncTest::Test, &funcTestClass));
165 test0.UnBind(std::bind(&DelegateFuncTest::Test1));
166 test0.UnBind([&]() {
return funcTestClass.
Test(); });
167 test0.UnBind([&]() { return DelegateFuncTest::Test1(); });
169
170 EXPECT_EQ(test0.size(), 3);
171 EXPECT_EQ(test2.empty(), true);
172 }
#define SPICESTEST_PROFILE_FUNCTION()
void Test()
Basic Override Class Function.
void DelegateTestT(Args ...args)
Template Function.