blob: 39228ed02c0cd894fd2afccf2e9820171e732d66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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;
}
};
}
|