Update Changelog
[profile/ivi/libgee.git] / tests / testlinkedlistasdeque.vala
1 /* testlinkedlistasdeque.vala
2  *
3  * Copyright (C) 2009  Didier Villevalois
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
18  *
19  * Authors:
20  *      Didier 'Ptitjes Villevalois <ptitjes@free.fr>
21  */
22
23 using Gee;
24
25 public class LinkedListAsDequeTests : DequeTests {
26
27         public LinkedListAsDequeTests () {
28                 base ("LinkedList as Deque");
29                 add_test ("[LinkedList] selected functions", test_selected_functions);
30         }
31
32         public override void set_up () {
33                 test_collection = new LinkedList<string> ();
34         }
35
36         public override void tear_down () {
37                 test_collection = null;
38         }
39
40         private void test_selected_functions () {
41                 var test_list = test_collection as LinkedList<string>;
42
43                 // Check the collection exists
44                 assert (test_list != null);
45         }
46 }