Skip to content

Commit d58ccf3

Browse files
hbsockaalhour
authored andcommitted
Fixing broken tests (aalhour#40)
* Fixed doubly linked list test with null enumerator. * Fix DLinkedListTest.
1 parent 44b90c9 commit d58ccf3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

MainProgram/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ public class Program
1212
{
1313
public static void Main(string[] args)
1414
{
15-
// OpenAddressingHashTableTest tests
16-
OpenAddressingHashTableTest.DoTest();
15+
DLinkedListTest.DoTest();
16+
// SortedDictionaryTests tests
17+
//SortedDictionaryTests.DoTest();
1718
}
1819
}
1920
}

UnitTest/DataStructuresTests/DLinkedListTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public static void DoTest()
6666
/****************************************************************************************/
6767

6868
var stringsIterators = listOfStrings.GetEnumerator();
69+
stringsIterators.MoveNext();
6970
Assert.True(stringsIterators.Current == listOfStrings[0], "Wrong enumeration.");
7071
if (stringsIterators.MoveNext() == true)
7172
{

0 commit comments

Comments
 (0)