Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Test]
- public void InvoicePaymentMethods_IsUndefined_Supports_All_Enum_Values() {
- var allInvoicePaymentMethodsValues = Enum.GetValues(typeof(InvoicePaymentMethods)).Cast<InvoicePaymentMethods>().ToList();
- foreach(var invoicePaymentMethodsValue in allInvoicePaymentMethodsValues) {
- if(invoicePaymentMethodsValue == InvoicePaymentMethods.Undefined) {
- Assert.IsTrue(invoicePaymentMethodsValue.IsUndefined());
- continue;
- }
- Assert.IsFalse(invoicePaymentMethodsValue.IsUndefined());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement