Beispiel #1
0
        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");
        }
Beispiel #2
0
        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));
        }