Пример #1
0
        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);
        }
Пример #2
0
 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;
     }
 }
Пример #3
0
 protected void buildDistributionObject()
 {
     Distribution = new Distribution(SortingParameters.NumberOfTemporaryFiles, DistributionBuffering,
                                     PreSorting.GetNumberOfSeries(FileParameters.SourceFileName));
 }