#include "pch.h" #include "CppUnitTest.h" #include 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* newNode = new Node(5); //Act //Assert Assert::IsNotNull(newNode); Assert::AreEqual(5, newNode->Data()); delete newNode; } }; }