From c94d0c347fdbd8acc774df4ac17617a3f63e4507 Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sun, 9 Jul 2017 23:48:06 +0200 Subject: Delete old codebase This change removes version 1 of the OpenDC simulator codebase as it will be replaced by a complete rewrite in the Kotlin language. --- Testing/include/modeling/MachineTest.h | 39 ---------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 Testing/include/modeling/MachineTest.h (limited to 'Testing/include/modeling/MachineTest.h') diff --git a/Testing/include/modeling/MachineTest.h b/Testing/include/modeling/MachineTest.h deleted file mode 100644 index 6bba9d0d..00000000 --- a/Testing/include/modeling/MachineTest.h +++ /dev/null @@ -1,39 +0,0 @@ -#pragma once -#include "modeling\Machine.h" - -#include - -TEST(MachineTest, GetSpeed) -{ - Modeling::Machine m(100); - - ASSERT_EQ(m.getSpeed(), 100); -} - -TEST(MachineTest, IsBusy) -{ - Modeling::Machine m(100); - std::shared_ptr shrdWorkload = std::make_shared(150, 1, 1, 1); - ASSERT_FALSE(m.isBusy()); - - m.giveTask(std::weak_ptr(shrdWorkload)); - - ASSERT_TRUE(m.isBusy()); -} - -TEST(MachineTest, Tick) -{ - Modeling::Machine m(100); - std::shared_ptr shrdWorkload = std::make_shared(150, 1, 1, 1); - m.giveTask(std::weak_ptr(shrdWorkload)); - - ASSERT_TRUE(m.isBusy()); - - m.tick(); - - ASSERT_TRUE(m.isBusy()); - - m.tick(); - - ASSERT_FALSE(m.isBusy()); -} \ No newline at end of file -- cgit v1.2.3