public void DotProductTheory(long expected, params string[] args)
 {
     using (ConsoleExaminator <long> .Exam(expected, args))
     {
         DotProduct.Main(args);
     }
 }
 public void ChangeTheory(uint expected, params string[] args)
 {
     using (ConsoleExaminator <uint> .Exam(expected, args))
     {
         Change.Main(args);
     }
 }
 public void FractionalKnapsackTheory(string expected, params string[] args)
 {
     using (ConsoleExaminator <string> .Exam(expected, new StringIgnoreLineEndsComparer(), args))
     {
         FractionalKnapsack.Main(args);
     }
 }
 public void InversionsTheory(int expected, params string[] args)
 {
     using (ConsoleExaminator <int> .Exam(expected, args))
     {
         Inversions.Main(args);
     }
 }
Beispiel #5
0
 public void MaxPairwiseProductFact(ulong expected, params string[] args)
 {
     using (ConsoleExaminator <ulong> .Exam(expected, args))
     {
         MaxPairwiseProduct.Main(args);
     }
 }
 public void MajorityElementTheory(int expected, params string[] args)
 {
     using (ConsoleExaminator <int> .Exam(expected, args))
     {
         MajorityElement.Main(args);
     }
 }
 public void BinarySearchTheory(string expected, params string[] args)
 {
     using (ConsoleExaminator <string> .Exam(expected, new StringIgnoreLineEndsComparer(), args))
     {
         BinarySearch.Main(args);
     }
 }
Beispiel #8
0
 public void FibonacciPartialSumFact(ulong expected, params string[] args)
 {
     using (ConsoleExaminator <ulong> .Exam(expected, args))
     {
         FibonacciPartialSum.Main(args);
     }
 }
Beispiel #9
0
 public void FibonacciSumLastDigitFact(ulong expected, params string[] args)
 {
     using (ConsoleExaminator <ulong> .Exam(expected, args))
     {
         FibonacciSumLastDigit.Main(args);
     }
 }
Beispiel #10
0
 public void LCMFact(ulong expected, params string[] args)
 {
     using (ConsoleExaminator <ulong> .Exam(expected, args))
     {
         LCM.Main(args);
     }
 }