/**
 * @file test_wifi.cpp
 * @brief Unit tests for WiFi wrapper component
 * @author Mahmoud Elmohtady
 * @company Nabd solutions - ASF
 * @copyright Copyright (c) 2025
 */

#include "unity.h"
#include "wifi.hpp"

extern "C" {

void setUp(void)
{
}

void tearDown(void)
{
}

void test_wifi_initialize(void)
{
    Wifi wifi;
    WifiConfig config = {"test_ssid", "test_password", WifiMode::STA};
    bool result = wifi.initialize(config);
    TEST_ASSERT_TRUE(result);
}

void test_wifi_connect(void)
{
    Wifi wifi;
    WifiConfig config = {"test_ssid", "test_password", WifiMode::STA};
    wifi.initialize(config);
    
    bool result = wifi.connect();
    TEST_ASSERT_TRUE(result);
    TEST_ASSERT_TRUE(wifi.isConnected());
}

} // extern "C"

