/**
 * Unit tests for base kernel class
 * @author Vyacheslav Kompan kompan.vo@phystech.edu
 * Copyright 2018 MIPT-MIPS
 */

#include "../kernel.h"
#include <catch.hpp>

TEST_CASE( "Kernel: Execute nothing")
{
    CHECK( Kernel::create_dummy_kernel()->execute() == Trap::SYSCALL);
    CHECK( Kernel::create_configured_kernel()->execute() == Trap::SYSCALL);
    CHECK_NOTHROW( Kernel::create_dummy_kernel()->set_simulator( nullptr));
    CHECK_NOTHROW( Kernel::create_dummy_kernel()->connect_memory( nullptr));
    CHECK_NOTHROW( Kernel::create_dummy_kernel()->add_replica_simulator( nullptr));
    CHECK_NOTHROW( Kernel::create_dummy_kernel()->add_replica_memory( nullptr));
}

/**
 * Unit tests for base kernel class
 * @author Vyacheslav Kompan kompan.vo@phystech.edu
 * Copyright 2018 MIPT-MIPS
 */

#include "../kernel.h"
// Catch2
#include <catch.hpp>

TEST_CASE( "Kernel: Execute nothing")
{
    CHECK( Kernel::create_dummy_kernel()->execute() == Trap::SYSCALL);
    CHECK( Kernel::create_configured_kernel()->execute() == Trap::SYSCALL);
}

--- 
+++ 
@@ -5,11 +5,14 @@
  */
 
 #include "../kernel.h"
-// Catch2
 #include <catch.hpp>
 
 TEST_CASE( "Kernel: Execute nothing")
 {
     CHECK( Kernel::create_dummy_kernel()->execute() == Trap::SYSCALL);
     CHECK( Kernel::create_configured_kernel()->execute() == Trap::SYSCALL);
+    CHECK_NOTHROW( Kernel::create_dummy_kernel()->set_simulator( nullptr));
+    CHECK_NOTHROW( Kernel::create_dummy_kernel()->connect_memory( nullptr));
+    CHECK_NOTHROW( Kernel::create_dummy_kernel()->add_replica_simulator( nullptr));
+    CHECK_NOTHROW( Kernel::create_dummy_kernel()->add_replica_memory( nullptr));
 }
Add unit tests for dummy kernel