Exemplo n.º 1
0
 /// <param name="module">Module that ran test.</param>
 /// <param name="timestamp">Time of passing the test.</param>
 /// <param name="result">Must be in [0, 100]</param>
 public TestResult(ModuleAbstract module, DateTime timestamp, double result)
 {
     if (result < 0 || result > 100)
     {
         throw new ArgumentException(String.Format("Result ({0}) must be in range [0, 100].", result), "result");
     }
     _moduleTypeName = module.GetType().FullName;
     Timestamp       = timestamp;
     Result          = result;
 }
Exemplo n.º 2
0
 public static ModuleInfo GetModuleInfo(ModuleAbstract module)
 {
     return(GetModuleInfo(module.GetType()));
 }