summaryrefslogtreecommitdiff
path: root/Testing/include/simulation/workloads/WorkloadTest.h
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-07-09 23:48:06 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-07-09 23:48:06 +0200
commitc94d0c347fdbd8acc774df4ac17617a3f63e4507 (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Testing/include/simulation/workloads/WorkloadTest.h
parentbc4c41e21a64b444bdbab3b6d1d407fd5d919419 (diff)
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.
Diffstat (limited to 'Testing/include/simulation/workloads/WorkloadTest.h')
-rw-r--r--Testing/include/simulation/workloads/WorkloadTest.h34
1 files changed, 0 insertions, 34 deletions
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 <gtest\gtest.h>
-
-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());
-}