private void loadButton_Click(object sender, RoutedEventArgs e) { Microsoft.Win32.OpenFileDialog ofd = new Microsoft.Win32.OpenFileDialog(); ofd.FileName = "Sample"; // Default file name ofd.DefaultExt = ".txt"; // Default file extension ofd.Filter = "Text documents (.txt)|*.txt"; // Filter files by extension // Show open file dialog box if ((bool)ofd.ShowDialog()) { textBlock1.Text = "Loading file " + ofd.FileName + "\n"; input = System.IO.File.ReadAllText(ofd.FileName); // read file words = Regex.Split(input, @"\s+"); // split into array of words // Order 1 hash table hashTable = HashExample.makeHashtable(words); } }
public void HashSetTest() { var foo = new HashExample(10000); Assert.IsNotNull(foo); }