{
EXPECT_EQ(THREAD_ERROR_NONE, thread_enable(&instance));
EXPECT_EQ(THREAD_ERROR_NONE, thread_start(instance));
+}
+
+TEST_F(ThreadCoreTest, StopNotInitialized)
+{
+ EXPECT_EQ(THREAD_ERROR_NONE, thread_deinitialize());
+ EXPECT_EQ(THREAD_ERROR_NOT_INITIALIZED, thread_stop(instance));
+}
+
+TEST_F(ThreadCoreTest, StopInvalidParameter)
+{
+ EXPECT_EQ(THREAD_ERROR_INVALID_PARAMETER, thread_stop(instance));
+}
+
+TEST_F(ThreadCoreTest, StopErrorNone)
+{
+ EXPECT_EQ(THREAD_ERROR_NONE, thread_enable(&instance));
+ EXPECT_EQ(THREAD_ERROR_NONE, thread_start(instance));
+ EXPECT_EQ(THREAD_ERROR_NONE, thread_stop(instance));
}
\ No newline at end of file