예제 #1
0
        public void TestIsEmptyFalse()
        {
            LinkedList <Employee> linkedList = new LinkedList <Employee>();
            Employee emp1 = new Employee(1);
            Employee emp2 = new Employee(2);

            linkedList.Add(emp1);
            linkedList.Add(emp2);

            Assert.That(linkedList.IsEmpty(), Is.False);
        }
예제 #2
0
        public void TestIsEmptyTrue()
        {
            LinkedList <Employee> linkedList = new LinkedList <Employee>();

            Assert.That(linkedList.IsEmpty(), Is.True);
        }