Beispiel #1
0
        public void IsFalseIfMinTcnDosentExistInMaxTcnList()
        {
            var tcnsFromTxtFile = new TcnsFromTxtFile(path);
            var baseTcnList     = new List <TcnDto>(tcnsFromTxtFile.GenerateList());

            var tcnsByMaxMode = new TcnsByMaxMode();
            var MaxTcnList    = new List <TcnDto>(tcnsByMaxMode.ProcessList(baseTcnList));

            var result = MaxTcnList.Contains(baseTcnList[4]);

            Console.WriteLine();
            Assert.IsFalse(result);
        }
Beispiel #2
0
        static void Main(string[] args)//// TODO: Create a full Windows Form for UX
        {
            Console.WriteLine("*** Welconme to TCN List APP ***");
            Console.WriteLine("Press Enter to choose a file to process");
            Console.ReadKey();

            var path            = ChooseFile();
            var tcnsFromTxtFile = new TcnsFromTxtFile(path);
            var list            = new List <TcnDto>(tcnsFromTxtFile.GenerateList());

            var tcnsByMaxMode = new TcnsByMaxMode();
            var tcnsByMinMode = new TcnsByMinMode();

            var MaxTcnList = new List <TcnDto>(tcnsByMaxMode.ProcessList(list));
            var MinTcnList = new List <TcnDto>(tcnsByMinMode.ProcessList(list));

            ShowList(list, "***Original List ****\n");
            ShowList(MaxTcnList, "\n***List of tcn with max value****\n");
            ShowList(MinTcnList, "\n***List of tcn with min value****\n");

            Console.ReadKey();
        }