aboutsummaryrefslogtreecommitdiff
path: root/CST 126/LinkedListUnitTests/NodeUnitTests.cpp
diff options
context:
space:
mode:
authorWesleyR <[email protected]>2024-06-09 23:09:50 -0700
committerWesleyR <[email protected]>2024-06-09 23:09:50 -0700
commitcb041a37b810a5dfa04c1c7f4315f9c3bbc8df0c (patch)
tree61b0d3d555e1596b5156e2d18e015497b438c2e4 /CST 126/LinkedListUnitTests/NodeUnitTests.cpp
parentUpdating before template node branch (diff)
downloadhomework-1-wesleyr23-develop.tar.xz
homework-1-wesleyr23-develop.zip
Submission for HW 3, In-Class Exercise 3, and In-Class Exercise 4HEADdevelopTemplate_Node
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