pszczyg

EnumSpeed_07

Sep 16th, 2021
868
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         [Test]
  2.         public void InvoicePaymentMethods_IsUndefined_Supports_All_Enum_Values() {
  3.             var allInvoicePaymentMethodsValues = Enum.GetValues(typeof(InvoicePaymentMethods)).Cast<InvoicePaymentMethods>().ToList();
  4.             foreach(var invoicePaymentMethodsValue in allInvoicePaymentMethodsValues) {
  5.                 if(invoicePaymentMethodsValue == InvoicePaymentMethods.Undefined) {
  6.                     Assert.IsTrue(invoicePaymentMethodsValue.IsUndefined());
  7.                     continue;
  8.                 }
  9.                 Assert.IsFalse(invoicePaymentMethodsValue.IsUndefined());
  10.             }
  11.         }
RAW Paste Data