public void getNumberOfSeriesInFile() { var expectedNumberOfSeries = 6; var actualNumberOfSeries = PreSorting.GetNumberOfSeries( @"D:\visual studio 2015\Projects\CollageProjects\Struktury Baz Danych\Projekt1 - Sortowanie plików sekwencyjnych 2018\SequentialFileSorting\SortingTests\SeriesTest.txt"); Assert.AreEqual(expectedNumberOfSeries, actualNumberOfSeries); }
private void CheckBox_ShowUnsortedFileClick(object sender, RoutedEventArgs e) { if ((bool)CheckBox_ShowUnsortedFile.IsChecked && allowDisplayingFiles) { Label_StatusBarLabel.Content = "The file has " + getNumberOfRecordsInFile(sender, e).ToString() + " records and " + PreSorting.GetNumberOfSeries(filePath) + " series."; tryToDisplayTextIn(TextBlock_UnsortedFile); } else { TextBlock_UnsortedFile.Text = string.Empty; } }
protected void buildDistributionObject() { Distribution = new Distribution(SortingParameters.NumberOfTemporaryFiles, DistributionBuffering, PreSorting.GetNumberOfSeries(FileParameters.SourceFileName)); }