public virtual void test_of_specific() { ReportingCurrency test = ReportingCurrency.of(USD); assertEquals(test.Type, ReportingCurrencyType.SPECIFIC); assertEquals(test.Specific, true); assertEquals(test.Natural, false); assertEquals(test.None, false); assertEquals(test.Currency, USD); assertEquals(test.ToString(), "Specific:USD"); }
public virtual void test_NONE() { ReportingCurrency test = ReportingCurrency.NONE; assertEquals(test.Type, ReportingCurrencyType.NONE); assertEquals(test.Specific, false); assertEquals(test.Natural, false); assertEquals(test.None, true); assertEquals(test.ToString(), "None"); assertThrows(() => test.Currency, typeof(System.InvalidOperationException)); }