Warning if not using 'is not null'

This commit is contained in:
nicolas.dorier
2022-01-14 17:48:15 +09:00
parent 5cbc2e96e7
commit c6a7e90c1a
9 changed files with 13 additions and 11 deletions

View File

@@ -479,7 +479,7 @@ namespace BTCPayServer.Tests
currencyEl.Clear();
currencyEl.SendKeys(currency);
Driver.FindElement(By.Id("BuyerEmail")).SendKeys(refundEmail);
if (defaultPaymentMethod is string)
if (defaultPaymentMethod is not null)
new SelectElement(Driver.FindElement(By.Name("DefaultPaymentMethod"))).SelectByValue(defaultPaymentMethod);
if (requiresRefundEmail is bool)
new SelectElement(Driver.FindElement(By.Name("RequiresRefundEmail"))).SelectByValue(requiresRefundEmail == true ? "1" : "2");