aboutsummaryrefslogtreecommitdiff
path: root/CST 126/LinkedListUnitTests/NodeUnitTests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CST 126/LinkedListUnitTests/NodeUnitTests.cpp')
-rw-r--r--CST 126/LinkedListUnitTests/NodeUnitTests.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/CST 126/LinkedListUnitTests/NodeUnitTests.cpp b/CST 126/LinkedListUnitTests/NodeUnitTests.cpp
new file mode 100644
index 0000000..39228ed
--- /dev/null
+++ b/CST 126/LinkedListUnitTests/NodeUnitTests.cpp
@@ -0,0 +1,37 @@
+#include "pch.h"
+#include "CppUnitTest.h"
+
+#include <list>
+
+using namespace Microsoft::VisualStudio::CppUnitTestFramework;
+
+#include "crt_check_memory.hpp"
+#include "node.hpp";
+
+using namespace CST126;
+
+namespace LinkedListUnitTests
+{
+ TEST_CLASS(NodeUnitTests)
+ {
+ public:
+
+ //Empty
+ TEST_METHOD(NodeEmptyConstructor_Success)
+ {
+ const CrtCheckMemory check;
+ //Arrange
+ Node<int>* newNode = new Node<int>(5);
+
+
+ //Act
+
+
+ //Assert
+ Assert::IsNotNull(newNode);
+ Assert::AreEqual(5, newNode->Data());
+
+ delete newNode;
+ }
+ };
+} \ No newline at end of file