public static string GetDisplayName(IArkadeTest arkadeTest) { string resourceDisplayNameKey = arkadeTest.GetId().ToString().Replace('.', '_'); string resourceDisplayName = ArkadeTestDisplayNames.ResourceManager.GetString(resourceDisplayNameKey); return(resourceDisplayName ?? GetFallBackDisplayName(arkadeTest)); }
private static string GetFallBackDisplayName(IArkadeTest arkadeTest) { try { return(((AddmlProcess)arkadeTest).GetName()); // Process name } catch { return(arkadeTest.GetType().Name); // Class name } }
public static string GetDisplayName(IArkadeTest arkadeTest) { string resourceDisplayNameKey = arkadeTest.GetId().ToString().Replace('.', '_'); if (arkadeTest.GetId().Version.Equals("5.5")) { resourceDisplayNameKey = $"{resourceDisplayNameKey}v5_5"; } string resourceDisplayName = ArkadeTestDisplayNames.ResourceManager.GetString(resourceDisplayNameKey); return(resourceDisplayName ?? GetFallBackDisplayName(arkadeTest)); }
public TestRun(IArkadeTest test) { _test = test; Results = new List <TestResult>(); }