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. --- .../include/simulation/workloads/WorkloadTest.h | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 Testing/include/simulation/workloads/WorkloadTest.h (limited to 'Testing/include/simulation/workloads/WorkloadTest.h') diff --git a/Testing/include/simulation/workloads/WorkloadTest.h b/Testing/include/simulation/workloads/WorkloadTest.h deleted file mode 100644 index e0da2138..00000000 --- a/Testing/include/simulation/workloads/WorkloadTest.h +++ /dev/null @@ -1,34 +0,0 @@ -#pragma once -#include "simulation\workloads\Workload.h" - -#include - -TEST(WorkloadTest, Constructor) -{ - Simulation::Workload w(100, 0, 5, 3, 0); - ASSERT_EQ(false, w.isFinished()); - ASSERT_EQ(5, w.getId()); - ASSERT_EQ(100, w.getRemainingOperations()); - ASSERT_EQ(100, w.getTotalOperations()); -} - -TEST(WorkloadTest, DoOperations) -{ - Simulation::Workload w(100, 0, 5, 3, 0); - w.doOperations(10); - ASSERT_EQ(90, w.getRemainingOperations()); -} - -TEST(WorkloadTest, GetTotalOperations) -{ - Simulation::Workload w(100, 0, 5, 3, 0); - w.doOperations(10); - ASSERT_EQ(100, w.getTotalOperations()); -} - -TEST(WorkloadTest, IsFinished) -{ - Simulation::Workload w(10, 0, 5, 3, 0); - w.doOperations(10); - ASSERT_EQ(true, w.isFinished()); -} -- cgit v1.2.3