private SupportedServerVersionLessThanTheoryAttribute(ServerVersionSupport serverVersionSupport) { var currentVersion = AppConfig.ServerVersion; if (serverVersionSupport.IsSupported(currentVersion) && string.IsNullOrEmpty(Skip)) { Skip = $"Test is supported only on server versions lower than {serverVersionSupport}."; } }
private SupportedServerVersionFactAttribute(ServerVersionSupport serverVersionSupport) { var currentVersion = AppConfig.ServerVersion; if (!serverVersionSupport.IsSupported(currentVersion) && string.IsNullOrEmpty(Skip)) { Skip = $"Test is supported only on {serverVersionSupport.SupportedServerVersions} and higher."; } }
public virtual ValueTask <bool> IsMetAsync() { var currentVersion = AppConfig.ServerVersion; var isMet = !ServerVersionSupport.IsSupported(currentVersion); if (!isMet && string.IsNullOrEmpty(Skip)) { Skip = $"Test is supported only on server versions lower than {ServerVersionSupport}."; } return(new ValueTask <bool>(isMet)); }