From bb765b730750ddd7ee36e4fac179e79fdbc53f1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Marcondes=20Teixeira?= Date: Fri, 23 Feb 2018 17:30:56 -0300 Subject: [PATCH] makes Currency implement ICurrency from TeixeiraSoftware.Finance.Money --- currency.sln | 48 +-- src/TeixeiraSoftware/Finance/Currency.cs | 30 +- .../Finance/CurrencyAllCurrenciesList.cs | 4 +- .../Finance/CurrencyFactoryProperties.cs | 2 +- .../CurrencyIComparableImplementation.cs | 35 ++ .../CurrencyIEquatableImplementation.cs | 33 ++ .../Finance/CurrencyMethods.cs | 37 +- .../Finance/CurrencyOperators.cs | 39 +- src/currency.csproj | 21 +- .../Finance/CurrencyAllCurrenciesListTest.cs | 356 +++++++++--------- test/TeixeiraSoftware/Finance/CurrencyTest.cs | 20 +- 11 files changed, 334 insertions(+), 291 deletions(-) create mode 100644 src/TeixeiraSoftware/Finance/CurrencyIComparableImplementation.cs create mode 100644 src/TeixeiraSoftware/Finance/CurrencyIEquatableImplementation.cs diff --git a/currency.sln b/currency.sln index 97f7118..351bb46 100644 --- a/currency.sln +++ b/currency.sln @@ -1,11 +1,10 @@ - Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 -VisualStudioVersion = 15.0.26124.0 +VisualStudioVersion = 15.0.27130.2010 MinimumVisualStudioVersion = 15.0.26124.0 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Currency", "src\Currency.csproj", "{5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Currency", "src\Currency.csproj", "{5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CurrencyTest", "test\CurrencyTest.csproj", "{4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CurrencyTest", "test\CurrencyTest.csproj", "{4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -16,33 +15,36 @@ Global Release|x64 = Release|x64 Release|x86 = Release|x86 EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x64.ActiveCfg = Debug|x64 - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x64.Build.0 = Debug|x64 - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x86.ActiveCfg = Debug|x86 - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x86.Build.0 = Debug|x86 + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x64.ActiveCfg = Debug|Any CPU + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x64.Build.0 = Debug|Any CPU + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x86.ActiveCfg = Debug|Any CPU + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Debug|x86.Build.0 = Debug|Any CPU {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|Any CPU.ActiveCfg = Release|Any CPU {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|Any CPU.Build.0 = Release|Any CPU - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x64.ActiveCfg = Release|x64 - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x64.Build.0 = Release|x64 - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x86.ActiveCfg = Release|x86 - {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x86.Build.0 = Release|x86 + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x64.ActiveCfg = Release|Any CPU + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x64.Build.0 = Release|Any CPU + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x86.ActiveCfg = Release|Any CPU + {5AC2463A-7695-4A6D-89E7-DE01DD7E6C7F}.Release|x86.Build.0 = Release|Any CPU {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x64.ActiveCfg = Debug|x64 - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x64.Build.0 = Debug|x64 - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x86.ActiveCfg = Debug|x86 - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x86.Build.0 = Debug|x86 + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x64.ActiveCfg = Debug|Any CPU + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x64.Build.0 = Debug|Any CPU + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x86.ActiveCfg = Debug|Any CPU + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Debug|x86.Build.0 = Debug|Any CPU {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|Any CPU.ActiveCfg = Release|Any CPU {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|Any CPU.Build.0 = Release|Any CPU - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x64.ActiveCfg = Release|x64 - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x64.Build.0 = Release|x64 - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x86.ActiveCfg = Release|x86 - {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x86.Build.0 = Release|x86 + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x64.ActiveCfg = Release|Any CPU + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x64.Build.0 = Release|Any CPU + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x86.ActiveCfg = Release|Any CPU + {4FBE5EA3-C320-4A13-9302-EDFD6745A2DB}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {B9CD3B4C-3396-4E9F-AC7F-994AC4DC1A8C} EndGlobalSection EndGlobal diff --git a/src/TeixeiraSoftware/Finance/Currency.cs b/src/TeixeiraSoftware/Finance/Currency.cs index 90577c1..eea184b 100644 --- a/src/TeixeiraSoftware/Finance/Currency.cs +++ b/src/TeixeiraSoftware/Finance/Currency.cs @@ -20,20 +20,8 @@ namespace TeixeiraSoftware.Finance /// /// /// - public partial struct Currency : IEquatable + public partial class Currency : ICurrency { - /// The 3 letters ISO code of the currency - public string LetterCode { get; } - - /// The ISO minor units of the currency - public byte MinorUnits { get; } - - /// The ISO name of the currency - public string Name { get; } - - /// The numeric ISO code of the currency - public string NumericCode { get; } - /// /// Initializes a new instance of the class. /// @@ -51,16 +39,16 @@ public partial struct Currency : IEquatable /// var currency = Currency.GetByNumericCode("999"); /// /// - /// The 3 letters ISO code of the Currency. + /// The 3 letters ISO code of the Currency. /// The 3 digits numeric ISO code of the Currency. /// The ISO minor units of the Currency. /// The ISO name of the Currency. - public Currency(string letterCode, string numericCode, byte minorUnits, string name) - { - this.LetterCode = letterCode; - this.NumericCode = numericCode; - this.MinorUnits = minorUnits; - this.Name = name; - } + public Currency( + string alphabeticCode, + string numericCode, + byte minorUnits, + string name + ) : base(alphabeticCode, numericCode, minorUnits, name) + { } } } \ No newline at end of file diff --git a/src/TeixeiraSoftware/Finance/CurrencyAllCurrenciesList.cs b/src/TeixeiraSoftware/Finance/CurrencyAllCurrenciesList.cs index 08b5d65..d3bc7c0 100644 --- a/src/TeixeiraSoftware/Finance/CurrencyAllCurrenciesList.cs +++ b/src/TeixeiraSoftware/Finance/CurrencyAllCurrenciesList.cs @@ -3,10 +3,10 @@ namespace TeixeiraSoftware.Finance { - public partial struct Currency : IEquatable + public partial class Currency : ICurrency { /// A list of all the currencies. - public static readonly IList AllCurrencies = new List + public static readonly IList AllCurrencies = new List { Currency.AED, Currency.AFN, diff --git a/src/TeixeiraSoftware/Finance/CurrencyFactoryProperties.cs b/src/TeixeiraSoftware/Finance/CurrencyFactoryProperties.cs index 5285b8f..1692b03 100644 --- a/src/TeixeiraSoftware/Finance/CurrencyFactoryProperties.cs +++ b/src/TeixeiraSoftware/Finance/CurrencyFactoryProperties.cs @@ -2,7 +2,7 @@ namespace TeixeiraSoftware.Finance { - public partial struct Currency : IEquatable + public partial class Currency : ICurrency { /// UAE Dirham public static Currency AED diff --git a/src/TeixeiraSoftware/Finance/CurrencyIComparableImplementation.cs b/src/TeixeiraSoftware/Finance/CurrencyIComparableImplementation.cs new file mode 100644 index 0000000..c1fc9ed --- /dev/null +++ b/src/TeixeiraSoftware/Finance/CurrencyIComparableImplementation.cs @@ -0,0 +1,35 @@ +using System; + +namespace TeixeiraSoftware.Finance +{ + public partial class Currency : ICurrency + { + /// + /// Compares two currencies for sorting purposes + /// + /// + /// + /// -1 if this current currency comes before the other currency. + /// 0 if this current currency is equal to the other currency. + /// 1 if this current currency comes after the other currency. + /// + public override int CompareTo(object other) + { + throw new NotImplementedException(); + } + + /// + /// Compares two currencies for sorting purposes + /// + /// + /// + /// -1 if this current currency comes before the other currency. + /// 0 if this current currency is equal to the other currency. + /// 1 if this current currency comes after the other currency. + /// + public override int CompareTo(ICurrency other) + { + throw new NotImplementedException(); + } + } +} diff --git a/src/TeixeiraSoftware/Finance/CurrencyIEquatableImplementation.cs b/src/TeixeiraSoftware/Finance/CurrencyIEquatableImplementation.cs new file mode 100644 index 0000000..421506a --- /dev/null +++ b/src/TeixeiraSoftware/Finance/CurrencyIEquatableImplementation.cs @@ -0,0 +1,33 @@ +namespace TeixeiraSoftware.Finance +{ + public partial class Currency : ICurrency + { + /// Compares the equality of two currencies. + /// + /// The instances of class are compared through their + /// whole set of properties. + /// + /// An instance of + public override bool Equals(object currency) + { + return AreEquivalent(this, (ICurrency)currency); + } + + /// Compares the equality of two currencies. + /// + /// The instances of class are compared through their + /// whole set of properties. + /// + /// An instance of + public override bool Equals(ICurrency currency) + { + return AreEquivalent(this, currency); + } + + /// The hash code is taken from the base class Object. + public override int GetHashCode() + { + return base.GetHashCode(); + } + } +} diff --git a/src/TeixeiraSoftware/Finance/CurrencyMethods.cs b/src/TeixeiraSoftware/Finance/CurrencyMethods.cs index e94ea98..2f462d1 100644 --- a/src/TeixeiraSoftware/Finance/CurrencyMethods.cs +++ b/src/TeixeiraSoftware/Finance/CurrencyMethods.cs @@ -3,23 +3,25 @@ namespace TeixeiraSoftware.Finance { - public partial struct Currency : IEquatable + public partial class Currency : ICurrency { - /// Gets a currency by its letter code. - /// The letter code of the desired currency. + /// Gets a currency by its alphabetic code. + /// The letter code of the desired currency. /// /// Thrown when no currency is found with the specified letter code. /// - public static Currency GetByLetterCode(string letterCode) + public static ICurrency ByAlphabeticCode(string alphabeticCode) { - var filteredCurrencies = Currency.AllCurrencies.Where(currency => currency.LetterCode == letterCode); + var filteredCurrencies = Currency.AllCurrencies.Where(currency => currency.AlphabeticCode == alphabeticCode); if (filteredCurrencies.Count() > 0) { - return filteredCurrencies.First(); + var currency = filteredCurrencies.First(); + + return new Currency(currency.AlphabeticCode, currency.NumericCode, currency.MinorUnits, currency.Name); } - throw new ArgumentException($"There is no registered currency with the letter code {letterCode}."); + throw new ArgumentException($"There is no registered currency with the alphabetic code {alphabeticCode}."); } /// Gets a currency by its numeric code. @@ -27,16 +29,33 @@ public static Currency GetByLetterCode(string letterCode) /// /// Thrown when no currency is found with the specified numeric code. /// - public static Currency GetByNumericCode(string numericCode) + public static ICurrency ByNumericCode(string numericCode) { var filteredCurrencies = Currency.AllCurrencies.Where(currency => currency.NumericCode == numericCode); if (filteredCurrencies.Count() > 0) { - return filteredCurrencies.First(); + var currency = filteredCurrencies.First(); + + return new Currency(currency.AlphabeticCode, currency.NumericCode, currency.MinorUnits, currency.Name); } throw new ArgumentException($"There is no registered currency with the numeric code {numericCode}."); } + + /// + /// Compares two ICurrency instances based on their whole set of properties + /// + /// An ICurrency instance + /// An ICurrency instance + /// True of false + private static bool AreEquivalent(ICurrency left, ICurrency right) + { + return + left.NumericCode == right.NumericCode + && left.AlphabeticCode == right.AlphabeticCode + && left.MinorUnits == right.MinorUnits + && left.Name == right.Name; + } } } \ No newline at end of file diff --git a/src/TeixeiraSoftware/Finance/CurrencyOperators.cs b/src/TeixeiraSoftware/Finance/CurrencyOperators.cs index 16ab643..c038cea 100644 --- a/src/TeixeiraSoftware/Finance/CurrencyOperators.cs +++ b/src/TeixeiraSoftware/Finance/CurrencyOperators.cs @@ -2,7 +2,7 @@ namespace TeixeiraSoftware.Finance { - public partial struct Currency : IEquatable + public partial class Currency : ICurrency { /// Compares the equality of two currencies. /// @@ -23,42 +23,5 @@ public partial struct Currency : IEquatable { return !AreEquivalent(a, b); } - - /// Compares the equality of two currencies. - /// - /// The instances of class are compared through their - /// whole set of properties. - /// - /// An instance of - public override bool Equals(object currency) - { - return AreEquivalent(this, (Currency) currency); - } - - /// Compares the equality of two currencies. - /// - /// The instances of class are compared through their - /// whole set of properties. - /// - /// An instance of - public bool Equals(Currency currency) - { - return AreEquivalent(this, currency); - } - - /// The hash code is taken from the base class Object. - public override int GetHashCode() - { - return base.GetHashCode(); - } - - private static bool AreEquivalent(Currency a, Currency b) - { - return - a.NumericCode == b.NumericCode - && a.LetterCode == b.LetterCode - && a.MinorUnits == b.MinorUnits - && a.Name == b.Name; - } } } \ No newline at end of file diff --git a/src/currency.csproj b/src/currency.csproj index f2d6a10..c9b6dfd 100755 --- a/src/currency.csproj +++ b/src/currency.csproj @@ -3,25 +3,25 @@ netstandard2.0 TeixeiraSoftware.Finance.Currency TeixeiraSoftware.Finance.Currency - 1.0.0 + 4.0.0 Teixeira Software - A simple cross platform currency struct that follows the ISO 4217 standard. + A simple cross platform currency class that follows the ISO 4217 standard. TeixeiraSoftware True andremteixeira Teixeira Software - A simple cross platform currency struct that follows the ISO 4217 standard. + A simple cross platform currency class that follows the ISO 4217 standard. Teixeira Software - https://github.com/TeixeiraSoftware/Currency + https://github.com/TeixeiraSoftware/TeixeiraSoftware.Finance.Currency currency;money;finance;netstandard en - 1.0.0.0 - 1.0.0.0 - 1.0.0 - https://github.com/TeixeiraSoftware/Currency - https://raw.githubusercontent.com/TeixeiraSoftware/Currency/master/LICENSE + 4.0.0.0 + 4.0.0.0 + 4.0.0 + https://teixeirasoftware.github.io/TeixeiraSoftware.Finance.Currency/ + https://raw.githubusercontent.com/TeixeiraSoftware/TeixeiraSoftware.Finance.Currency/master/LICENSE First release. @@ -31,4 +31,7 @@ bin\Release\netstandard2.0\TeixeiraSoftware.Finance.Currency.xml + + + \ No newline at end of file diff --git a/test/TeixeiraSoftware/Finance/CurrencyAllCurrenciesListTest.cs b/test/TeixeiraSoftware/Finance/CurrencyAllCurrenciesListTest.cs index 26c5517..b16eabc 100644 --- a/test/TeixeiraSoftware/Finance/CurrencyAllCurrenciesListTest.cs +++ b/test/TeixeiraSoftware/Finance/CurrencyAllCurrenciesListTest.cs @@ -7,7 +7,7 @@ public class CurrencyAllCurrenciesListTest [Fact] public void Test_Currency_AED_Properties() { - Assert.Equal("AED", Currency.AED.LetterCode); + Assert.Equal("AED", Currency.AED.AlphabeticCode); Assert.Equal("784", Currency.AED.NumericCode); Assert.Equal("UAE Dirham", Currency.AED.Name); Assert.Equal(2, Currency.AED.MinorUnits); @@ -16,7 +16,7 @@ public void Test_Currency_AED_Properties() [Fact] public void Test_Currency_AFN_Properties() { - Assert.Equal("AFN", Currency.AFN.LetterCode); + Assert.Equal("AFN", Currency.AFN.AlphabeticCode); Assert.Equal("971", Currency.AFN.NumericCode); Assert.Equal("Afghani", Currency.AFN.Name); Assert.Equal(2, Currency.AFN.MinorUnits); @@ -25,7 +25,7 @@ public void Test_Currency_AFN_Properties() [Fact] public void Test_Currency_ALL_Properties() { - Assert.Equal("ALL", Currency.ALL.LetterCode); + Assert.Equal("ALL", Currency.ALL.AlphabeticCode); Assert.Equal("008", Currency.ALL.NumericCode); Assert.Equal("Lek", Currency.ALL.Name); Assert.Equal(2, Currency.ALL.MinorUnits); @@ -34,7 +34,7 @@ public void Test_Currency_ALL_Properties() [Fact] public void Test_Currency_AMD_Properties() { - Assert.Equal("AMD", Currency.AMD.LetterCode); + Assert.Equal("AMD", Currency.AMD.AlphabeticCode); Assert.Equal("051", Currency.AMD.NumericCode); Assert.Equal("Armenian Dram", Currency.AMD.Name); Assert.Equal(2, Currency.AMD.MinorUnits); @@ -43,7 +43,7 @@ public void Test_Currency_AMD_Properties() [Fact] public void Test_Currency_ANG_Properties() { - Assert.Equal("ANG", Currency.ANG.LetterCode); + Assert.Equal("ANG", Currency.ANG.AlphabeticCode); Assert.Equal("532", Currency.ANG.NumericCode); Assert.Equal("Netherlands Antillean Guilder", Currency.ANG.Name); Assert.Equal(2, Currency.ANG.MinorUnits); @@ -52,7 +52,7 @@ public void Test_Currency_ANG_Properties() [Fact] public void Test_Currency_AOA_Properties() { - Assert.Equal("AOA", Currency.AOA.LetterCode); + Assert.Equal("AOA", Currency.AOA.AlphabeticCode); Assert.Equal("973", Currency.AOA.NumericCode); Assert.Equal("Kwanza", Currency.AOA.Name); Assert.Equal(2, Currency.AOA.MinorUnits); @@ -61,7 +61,7 @@ public void Test_Currency_AOA_Properties() [Fact] public void Test_Currency_ARS_Properties() { - Assert.Equal("ARS", Currency.ARS.LetterCode); + Assert.Equal("ARS", Currency.ARS.AlphabeticCode); Assert.Equal("032", Currency.ARS.NumericCode); Assert.Equal("Argentine Peso", Currency.ARS.Name); Assert.Equal(2, Currency.ARS.MinorUnits); @@ -70,7 +70,7 @@ public void Test_Currency_ARS_Properties() [Fact] public void Test_Currency_AUD_Properties() { - Assert.Equal("AUD", Currency.AUD.LetterCode); + Assert.Equal("AUD", Currency.AUD.AlphabeticCode); Assert.Equal("036", Currency.AUD.NumericCode); Assert.Equal("Australian Dollar", Currency.AUD.Name); Assert.Equal(2, Currency.AUD.MinorUnits); @@ -79,7 +79,7 @@ public void Test_Currency_AUD_Properties() [Fact] public void Test_Currency_AWG_Properties() { - Assert.Equal("AWG", Currency.AWG.LetterCode); + Assert.Equal("AWG", Currency.AWG.AlphabeticCode); Assert.Equal("533", Currency.AWG.NumericCode); Assert.Equal("Aruban Florin", Currency.AWG.Name); Assert.Equal(2, Currency.AWG.MinorUnits); @@ -88,7 +88,7 @@ public void Test_Currency_AWG_Properties() [Fact] public void Test_Currency_AZN_Properties() { - Assert.Equal("AZN", Currency.AZN.LetterCode); + Assert.Equal("AZN", Currency.AZN.AlphabeticCode); Assert.Equal("944", Currency.AZN.NumericCode); Assert.Equal("Azerbaijanian Manat", Currency.AZN.Name); Assert.Equal(2, Currency.AZN.MinorUnits); @@ -97,7 +97,7 @@ public void Test_Currency_AZN_Properties() [Fact] public void Test_Currency_BAM_Properties() { - Assert.Equal("BAM", Currency.BAM.LetterCode); + Assert.Equal("BAM", Currency.BAM.AlphabeticCode); Assert.Equal("977", Currency.BAM.NumericCode); Assert.Equal("Convertible Mark", Currency.BAM.Name); Assert.Equal(2, Currency.BAM.MinorUnits); @@ -106,7 +106,7 @@ public void Test_Currency_BAM_Properties() [Fact] public void Test_Currency_BBD_Properties() { - Assert.Equal("BBD", Currency.BBD.LetterCode); + Assert.Equal("BBD", Currency.BBD.AlphabeticCode); Assert.Equal("052", Currency.BBD.NumericCode); Assert.Equal("Barbados Dollar", Currency.BBD.Name); Assert.Equal(2, Currency.BBD.MinorUnits); @@ -115,7 +115,7 @@ public void Test_Currency_BBD_Properties() [Fact] public void Test_Currency_BDT_Properties() { - Assert.Equal("BDT", Currency.BDT.LetterCode); + Assert.Equal("BDT", Currency.BDT.AlphabeticCode); Assert.Equal("050", Currency.BDT.NumericCode); Assert.Equal("Taka", Currency.BDT.Name); Assert.Equal(2, Currency.BDT.MinorUnits); @@ -124,7 +124,7 @@ public void Test_Currency_BDT_Properties() [Fact] public void Test_Currency_BGN_Properties() { - Assert.Equal("BGN", Currency.BGN.LetterCode); + Assert.Equal("BGN", Currency.BGN.AlphabeticCode); Assert.Equal("975", Currency.BGN.NumericCode); Assert.Equal("Bulgarian Lev", Currency.BGN.Name); Assert.Equal(2, Currency.BGN.MinorUnits); @@ -133,7 +133,7 @@ public void Test_Currency_BGN_Properties() [Fact] public void Test_Currency_BHD_Properties() { - Assert.Equal("BHD", Currency.BHD.LetterCode); + Assert.Equal("BHD", Currency.BHD.AlphabeticCode); Assert.Equal("048", Currency.BHD.NumericCode); Assert.Equal("Bahraini Dinar", Currency.BHD.Name); Assert.Equal(3, Currency.BHD.MinorUnits); @@ -142,7 +142,7 @@ public void Test_Currency_BHD_Properties() [Fact] public void Test_Currency_BIF_Properties() { - Assert.Equal("BIF", Currency.BIF.LetterCode); + Assert.Equal("BIF", Currency.BIF.AlphabeticCode); Assert.Equal("108", Currency.BIF.NumericCode); Assert.Equal("Burundi Franc", Currency.BIF.Name); Assert.Equal(0, Currency.BIF.MinorUnits); @@ -151,7 +151,7 @@ public void Test_Currency_BIF_Properties() [Fact] public void Test_Currency_BMD_Properties() { - Assert.Equal("BMD", Currency.BMD.LetterCode); + Assert.Equal("BMD", Currency.BMD.AlphabeticCode); Assert.Equal("060", Currency.BMD.NumericCode); Assert.Equal("Bermudian Dollar", Currency.BMD.Name); Assert.Equal(2, Currency.BMD.MinorUnits); @@ -160,7 +160,7 @@ public void Test_Currency_BMD_Properties() [Fact] public void Test_Currency_BND_Properties() { - Assert.Equal("BND", Currency.BND.LetterCode); + Assert.Equal("BND", Currency.BND.AlphabeticCode); Assert.Equal("096", Currency.BND.NumericCode); Assert.Equal("Brunei Dollar", Currency.BND.Name); Assert.Equal(2, Currency.BND.MinorUnits); @@ -169,7 +169,7 @@ public void Test_Currency_BND_Properties() [Fact] public void Test_Currency_BOB_Properties() { - Assert.Equal("BOB", Currency.BOB.LetterCode); + Assert.Equal("BOB", Currency.BOB.AlphabeticCode); Assert.Equal("068", Currency.BOB.NumericCode); Assert.Equal("Boliviano", Currency.BOB.Name); Assert.Equal(2, Currency.BOB.MinorUnits); @@ -178,7 +178,7 @@ public void Test_Currency_BOB_Properties() [Fact] public void Test_Currency_BOV_Properties() { - Assert.Equal("BOV", Currency.BOV.LetterCode); + Assert.Equal("BOV", Currency.BOV.AlphabeticCode); Assert.Equal("984", Currency.BOV.NumericCode); Assert.Equal("Mvdol", Currency.BOV.Name); Assert.Equal(2, Currency.BOV.MinorUnits); @@ -187,7 +187,7 @@ public void Test_Currency_BOV_Properties() [Fact] public void Test_Currency_BRL_Properties() { - Assert.Equal("BRL", Currency.BRL.LetterCode); + Assert.Equal("BRL", Currency.BRL.AlphabeticCode); Assert.Equal("986", Currency.BRL.NumericCode); Assert.Equal("Brazilian Real", Currency.BRL.Name); Assert.Equal(2, Currency.BRL.MinorUnits); @@ -196,7 +196,7 @@ public void Test_Currency_BRL_Properties() [Fact] public void Test_Currency_BSD_Properties() { - Assert.Equal("BSD", Currency.BSD.LetterCode); + Assert.Equal("BSD", Currency.BSD.AlphabeticCode); Assert.Equal("044", Currency.BSD.NumericCode); Assert.Equal("Bahamian Dollar", Currency.BSD.Name); Assert.Equal(2, Currency.BSD.MinorUnits); @@ -205,7 +205,7 @@ public void Test_Currency_BSD_Properties() [Fact] public void Test_Currency_BTN_Properties() { - Assert.Equal("BTN", Currency.BTN.LetterCode); + Assert.Equal("BTN", Currency.BTN.AlphabeticCode); Assert.Equal("064", Currency.BTN.NumericCode); Assert.Equal("Ngultrum", Currency.BTN.Name); Assert.Equal(2, Currency.BTN.MinorUnits); @@ -214,7 +214,7 @@ public void Test_Currency_BTN_Properties() [Fact] public void Test_Currency_BWP_Properties() { - Assert.Equal("BWP", Currency.BWP.LetterCode); + Assert.Equal("BWP", Currency.BWP.AlphabeticCode); Assert.Equal("072", Currency.BWP.NumericCode); Assert.Equal("Pula", Currency.BWP.Name); Assert.Equal(2, Currency.BWP.MinorUnits); @@ -223,7 +223,7 @@ public void Test_Currency_BWP_Properties() [Fact] public void Test_Currency_BYN_Properties() { - Assert.Equal("BYN", Currency.BYN.LetterCode); + Assert.Equal("BYN", Currency.BYN.AlphabeticCode); Assert.Equal("933", Currency.BYN.NumericCode); Assert.Equal("Belarusian Ruble", Currency.BYN.Name); Assert.Equal(2, Currency.BYN.MinorUnits); @@ -232,7 +232,7 @@ public void Test_Currency_BYN_Properties() [Fact] public void Test_Currency_BZD_Properties() { - Assert.Equal("BZD", Currency.BZD.LetterCode); + Assert.Equal("BZD", Currency.BZD.AlphabeticCode); Assert.Equal("084", Currency.BZD.NumericCode); Assert.Equal("Belize Dollar", Currency.BZD.Name); Assert.Equal(2, Currency.BZD.MinorUnits); @@ -241,7 +241,7 @@ public void Test_Currency_BZD_Properties() [Fact] public void Test_Currency_CAD_Properties() { - Assert.Equal("CAD", Currency.CAD.LetterCode); + Assert.Equal("CAD", Currency.CAD.AlphabeticCode); Assert.Equal("124", Currency.CAD.NumericCode); Assert.Equal("Canadian Dollar", Currency.CAD.Name); Assert.Equal(2, Currency.CAD.MinorUnits); @@ -250,7 +250,7 @@ public void Test_Currency_CAD_Properties() [Fact] public void Test_Currency_CDF_Properties() { - Assert.Equal("CDF", Currency.CDF.LetterCode); + Assert.Equal("CDF", Currency.CDF.AlphabeticCode); Assert.Equal("976", Currency.CDF.NumericCode); Assert.Equal("Congolese Franc", Currency.CDF.Name); Assert.Equal(2, Currency.CDF.MinorUnits); @@ -259,7 +259,7 @@ public void Test_Currency_CDF_Properties() [Fact] public void Test_Currency_CHE_Properties() { - Assert.Equal("CHE", Currency.CHE.LetterCode); + Assert.Equal("CHE", Currency.CHE.AlphabeticCode); Assert.Equal("947", Currency.CHE.NumericCode); Assert.Equal("WIR Euro", Currency.CHE.Name); Assert.Equal(2, Currency.CHE.MinorUnits); @@ -268,7 +268,7 @@ public void Test_Currency_CHE_Properties() [Fact] public void Test_Currency_CHF_Properties() { - Assert.Equal("CHF", Currency.CHF.LetterCode); + Assert.Equal("CHF", Currency.CHF.AlphabeticCode); Assert.Equal("756", Currency.CHF.NumericCode); Assert.Equal("Swiss Franc", Currency.CHF.Name); Assert.Equal(2, Currency.CHF.MinorUnits); @@ -277,7 +277,7 @@ public void Test_Currency_CHF_Properties() [Fact] public void Test_Currency_CHW_Properties() { - Assert.Equal("CHW", Currency.CHW.LetterCode); + Assert.Equal("CHW", Currency.CHW.AlphabeticCode); Assert.Equal("948", Currency.CHW.NumericCode); Assert.Equal("WIR Franc", Currency.CHW.Name); Assert.Equal(2, Currency.CHW.MinorUnits); @@ -286,7 +286,7 @@ public void Test_Currency_CHW_Properties() [Fact] public void Test_Currency_CLF_Properties() { - Assert.Equal("CLF", Currency.CLF.LetterCode); + Assert.Equal("CLF", Currency.CLF.AlphabeticCode); Assert.Equal("990", Currency.CLF.NumericCode); Assert.Equal("Unidad de Fomento", Currency.CLF.Name); Assert.Equal(4, Currency.CLF.MinorUnits); @@ -295,7 +295,7 @@ public void Test_Currency_CLF_Properties() [Fact] public void Test_Currency_CLP_Properties() { - Assert.Equal("CLP", Currency.CLP.LetterCode); + Assert.Equal("CLP", Currency.CLP.AlphabeticCode); Assert.Equal("152", Currency.CLP.NumericCode); Assert.Equal("Chilean Peso", Currency.CLP.Name); Assert.Equal(0, Currency.CLP.MinorUnits); @@ -304,7 +304,7 @@ public void Test_Currency_CLP_Properties() [Fact] public void Test_Currency_CNY_Properties() { - Assert.Equal("CNY", Currency.CNY.LetterCode); + Assert.Equal("CNY", Currency.CNY.AlphabeticCode); Assert.Equal("156", Currency.CNY.NumericCode); Assert.Equal("Yuan Renminbi", Currency.CNY.Name); Assert.Equal(2, Currency.CNY.MinorUnits); @@ -313,7 +313,7 @@ public void Test_Currency_CNY_Properties() [Fact] public void Test_Currency_COP_Properties() { - Assert.Equal("COP", Currency.COP.LetterCode); + Assert.Equal("COP", Currency.COP.AlphabeticCode); Assert.Equal("170", Currency.COP.NumericCode); Assert.Equal("Colombian Peso", Currency.COP.Name); Assert.Equal(2, Currency.COP.MinorUnits); @@ -322,7 +322,7 @@ public void Test_Currency_COP_Properties() [Fact] public void Test_Currency_COU_Properties() { - Assert.Equal("COU", Currency.COU.LetterCode); + Assert.Equal("COU", Currency.COU.AlphabeticCode); Assert.Equal("970", Currency.COU.NumericCode); Assert.Equal("Unidad de Valor Real", Currency.COU.Name); Assert.Equal(2, Currency.COU.MinorUnits); @@ -331,7 +331,7 @@ public void Test_Currency_COU_Properties() [Fact] public void Test_Currency_CRC_Properties() { - Assert.Equal("CRC", Currency.CRC.LetterCode); + Assert.Equal("CRC", Currency.CRC.AlphabeticCode); Assert.Equal("188", Currency.CRC.NumericCode); Assert.Equal("Costa Rican Colon", Currency.CRC.Name); Assert.Equal(2, Currency.CRC.MinorUnits); @@ -340,7 +340,7 @@ public void Test_Currency_CRC_Properties() [Fact] public void Test_Currency_CUC_Properties() { - Assert.Equal("CUC", Currency.CUC.LetterCode); + Assert.Equal("CUC", Currency.CUC.AlphabeticCode); Assert.Equal("931", Currency.CUC.NumericCode); Assert.Equal("Peso Convertible", Currency.CUC.Name); Assert.Equal(2, Currency.CUC.MinorUnits); @@ -349,7 +349,7 @@ public void Test_Currency_CUC_Properties() [Fact] public void Test_Currency_CUP_Properties() { - Assert.Equal("CUP", Currency.CUP.LetterCode); + Assert.Equal("CUP", Currency.CUP.AlphabeticCode); Assert.Equal("192", Currency.CUP.NumericCode); Assert.Equal("Cuban Peso", Currency.CUP.Name); Assert.Equal(2, Currency.CUP.MinorUnits); @@ -358,7 +358,7 @@ public void Test_Currency_CUP_Properties() [Fact] public void Test_Currency_CVE_Properties() { - Assert.Equal("CVE", Currency.CVE.LetterCode); + Assert.Equal("CVE", Currency.CVE.AlphabeticCode); Assert.Equal("132", Currency.CVE.NumericCode); Assert.Equal("Cabo Verde Escudo", Currency.CVE.Name); Assert.Equal(2, Currency.CVE.MinorUnits); @@ -367,7 +367,7 @@ public void Test_Currency_CVE_Properties() [Fact] public void Test_Currency_CZK_Properties() { - Assert.Equal("CZK", Currency.CZK.LetterCode); + Assert.Equal("CZK", Currency.CZK.AlphabeticCode); Assert.Equal("203", Currency.CZK.NumericCode); Assert.Equal("Czech Koruna", Currency.CZK.Name); Assert.Equal(2, Currency.CZK.MinorUnits); @@ -376,7 +376,7 @@ public void Test_Currency_CZK_Properties() [Fact] public void Test_Currency_DJF_Properties() { - Assert.Equal("DJF", Currency.DJF.LetterCode); + Assert.Equal("DJF", Currency.DJF.AlphabeticCode); Assert.Equal("262", Currency.DJF.NumericCode); Assert.Equal("Djibouti Franc", Currency.DJF.Name); Assert.Equal(0, Currency.DJF.MinorUnits); @@ -385,7 +385,7 @@ public void Test_Currency_DJF_Properties() [Fact] public void Test_Currency_DKK_Properties() { - Assert.Equal("DKK", Currency.DKK.LetterCode); + Assert.Equal("DKK", Currency.DKK.AlphabeticCode); Assert.Equal("208", Currency.DKK.NumericCode); Assert.Equal("Danish Krone", Currency.DKK.Name); Assert.Equal(2, Currency.DKK.MinorUnits); @@ -394,7 +394,7 @@ public void Test_Currency_DKK_Properties() [Fact] public void Test_Currency_DOP_Properties() { - Assert.Equal("DOP", Currency.DOP.LetterCode); + Assert.Equal("DOP", Currency.DOP.AlphabeticCode); Assert.Equal("214", Currency.DOP.NumericCode); Assert.Equal("Dominican Peso", Currency.DOP.Name); Assert.Equal(2, Currency.DOP.MinorUnits); @@ -403,7 +403,7 @@ public void Test_Currency_DOP_Properties() [Fact] public void Test_Currency_DZD_Properties() { - Assert.Equal("DZD", Currency.DZD.LetterCode); + Assert.Equal("DZD", Currency.DZD.AlphabeticCode); Assert.Equal("012", Currency.DZD.NumericCode); Assert.Equal("Algerian Dinar", Currency.DZD.Name); Assert.Equal(2, Currency.DZD.MinorUnits); @@ -412,7 +412,7 @@ public void Test_Currency_DZD_Properties() [Fact] public void Test_Currency_EGP_Properties() { - Assert.Equal("EGP", Currency.EGP.LetterCode); + Assert.Equal("EGP", Currency.EGP.AlphabeticCode); Assert.Equal("818", Currency.EGP.NumericCode); Assert.Equal("Egyptian Pound", Currency.EGP.Name); Assert.Equal(2, Currency.EGP.MinorUnits); @@ -421,7 +421,7 @@ public void Test_Currency_EGP_Properties() [Fact] public void Test_Currency_ERN_Properties() { - Assert.Equal("ERN", Currency.ERN.LetterCode); + Assert.Equal("ERN", Currency.ERN.AlphabeticCode); Assert.Equal("232", Currency.ERN.NumericCode); Assert.Equal("Nakfa", Currency.ERN.Name); Assert.Equal(2, Currency.ERN.MinorUnits); @@ -430,7 +430,7 @@ public void Test_Currency_ERN_Properties() [Fact] public void Test_Currency_ETB_Properties() { - Assert.Equal("ETB", Currency.ETB.LetterCode); + Assert.Equal("ETB", Currency.ETB.AlphabeticCode); Assert.Equal("230", Currency.ETB.NumericCode); Assert.Equal("Ethiopian Birr", Currency.ETB.Name); Assert.Equal(2, Currency.ETB.MinorUnits); @@ -439,7 +439,7 @@ public void Test_Currency_ETB_Properties() [Fact] public void Test_Currency_EUR_Properties() { - Assert.Equal("EUR", Currency.EUR.LetterCode); + Assert.Equal("EUR", Currency.EUR.AlphabeticCode); Assert.Equal("978", Currency.EUR.NumericCode); Assert.Equal("Euro", Currency.EUR.Name); Assert.Equal(2, Currency.EUR.MinorUnits); @@ -448,7 +448,7 @@ public void Test_Currency_EUR_Properties() [Fact] public void Test_Currency_FJD_Properties() { - Assert.Equal("FJD", Currency.FJD.LetterCode); + Assert.Equal("FJD", Currency.FJD.AlphabeticCode); Assert.Equal("242", Currency.FJD.NumericCode); Assert.Equal("Fiji Dollar", Currency.FJD.Name); Assert.Equal(2, Currency.FJD.MinorUnits); @@ -457,7 +457,7 @@ public void Test_Currency_FJD_Properties() [Fact] public void Test_Currency_FKP_Properties() { - Assert.Equal("FKP", Currency.FKP.LetterCode); + Assert.Equal("FKP", Currency.FKP.AlphabeticCode); Assert.Equal("238", Currency.FKP.NumericCode); Assert.Equal("Falkland Islands Pound", Currency.FKP.Name); Assert.Equal(2, Currency.FKP.MinorUnits); @@ -466,7 +466,7 @@ public void Test_Currency_FKP_Properties() [Fact] public void Test_Currency_GBP_Properties() { - Assert.Equal("GBP", Currency.GBP.LetterCode); + Assert.Equal("GBP", Currency.GBP.AlphabeticCode); Assert.Equal("826", Currency.GBP.NumericCode); Assert.Equal("Pound Sterling", Currency.GBP.Name); Assert.Equal(2, Currency.GBP.MinorUnits); @@ -475,7 +475,7 @@ public void Test_Currency_GBP_Properties() [Fact] public void Test_Currency_GEL_Properties() { - Assert.Equal("GEL", Currency.GEL.LetterCode); + Assert.Equal("GEL", Currency.GEL.AlphabeticCode); Assert.Equal("981", Currency.GEL.NumericCode); Assert.Equal("Lari", Currency.GEL.Name); Assert.Equal(2, Currency.GEL.MinorUnits); @@ -484,7 +484,7 @@ public void Test_Currency_GEL_Properties() [Fact] public void Test_Currency_GHS_Properties() { - Assert.Equal("GHS", Currency.GHS.LetterCode); + Assert.Equal("GHS", Currency.GHS.AlphabeticCode); Assert.Equal("936", Currency.GHS.NumericCode); Assert.Equal("Ghana Cedi", Currency.GHS.Name); Assert.Equal(2, Currency.GHS.MinorUnits); @@ -493,7 +493,7 @@ public void Test_Currency_GHS_Properties() [Fact] public void Test_Currency_GIP_Properties() { - Assert.Equal("GIP", Currency.GIP.LetterCode); + Assert.Equal("GIP", Currency.GIP.AlphabeticCode); Assert.Equal("292", Currency.GIP.NumericCode); Assert.Equal("Gibraltar Pound", Currency.GIP.Name); Assert.Equal(2, Currency.GIP.MinorUnits); @@ -502,7 +502,7 @@ public void Test_Currency_GIP_Properties() [Fact] public void Test_Currency_GMD_Properties() { - Assert.Equal("GMD", Currency.GMD.LetterCode); + Assert.Equal("GMD", Currency.GMD.AlphabeticCode); Assert.Equal("270", Currency.GMD.NumericCode); Assert.Equal("Dalasi", Currency.GMD.Name); Assert.Equal(2, Currency.GMD.MinorUnits); @@ -511,7 +511,7 @@ public void Test_Currency_GMD_Properties() [Fact] public void Test_Currency_GNF_Properties() { - Assert.Equal("GNF", Currency.GNF.LetterCode); + Assert.Equal("GNF", Currency.GNF.AlphabeticCode); Assert.Equal("324", Currency.GNF.NumericCode); Assert.Equal("Guinea Franc", Currency.GNF.Name); Assert.Equal(0, Currency.GNF.MinorUnits); @@ -520,7 +520,7 @@ public void Test_Currency_GNF_Properties() [Fact] public void Test_Currency_GTQ_Properties() { - Assert.Equal("GTQ", Currency.GTQ.LetterCode); + Assert.Equal("GTQ", Currency.GTQ.AlphabeticCode); Assert.Equal("320", Currency.GTQ.NumericCode); Assert.Equal("Quetzal", Currency.GTQ.Name); Assert.Equal(2, Currency.GTQ.MinorUnits); @@ -529,7 +529,7 @@ public void Test_Currency_GTQ_Properties() [Fact] public void Test_Currency_GYD_Properties() { - Assert.Equal("GYD", Currency.GYD.LetterCode); + Assert.Equal("GYD", Currency.GYD.AlphabeticCode); Assert.Equal("328", Currency.GYD.NumericCode); Assert.Equal("Guyana Dollar", Currency.GYD.Name); Assert.Equal(2, Currency.GYD.MinorUnits); @@ -538,7 +538,7 @@ public void Test_Currency_GYD_Properties() [Fact] public void Test_Currency_HKD_Properties() { - Assert.Equal("HKD", Currency.HKD.LetterCode); + Assert.Equal("HKD", Currency.HKD.AlphabeticCode); Assert.Equal("344", Currency.HKD.NumericCode); Assert.Equal("Hong Kong Dollar", Currency.HKD.Name); Assert.Equal(2, Currency.HKD.MinorUnits); @@ -547,7 +547,7 @@ public void Test_Currency_HKD_Properties() [Fact] public void Test_Currency_HNL_Properties() { - Assert.Equal("HNL", Currency.HNL.LetterCode); + Assert.Equal("HNL", Currency.HNL.AlphabeticCode); Assert.Equal("340", Currency.HNL.NumericCode); Assert.Equal("Lempira", Currency.HNL.Name); Assert.Equal(2, Currency.HNL.MinorUnits); @@ -556,7 +556,7 @@ public void Test_Currency_HNL_Properties() [Fact] public void Test_Currency_HRK_Properties() { - Assert.Equal("HRK", Currency.HRK.LetterCode); + Assert.Equal("HRK", Currency.HRK.AlphabeticCode); Assert.Equal("191", Currency.HRK.NumericCode); Assert.Equal("Kuna", Currency.HRK.Name); Assert.Equal(2, Currency.HRK.MinorUnits); @@ -565,7 +565,7 @@ public void Test_Currency_HRK_Properties() [Fact] public void Test_Currency_HTG_Properties() { - Assert.Equal("HTG", Currency.HTG.LetterCode); + Assert.Equal("HTG", Currency.HTG.AlphabeticCode); Assert.Equal("332", Currency.HTG.NumericCode); Assert.Equal("Gourde", Currency.HTG.Name); Assert.Equal(2, Currency.HTG.MinorUnits); @@ -574,7 +574,7 @@ public void Test_Currency_HTG_Properties() [Fact] public void Test_Currency_HUF_Properties() { - Assert.Equal("HUF", Currency.HUF.LetterCode); + Assert.Equal("HUF", Currency.HUF.AlphabeticCode); Assert.Equal("348", Currency.HUF.NumericCode); Assert.Equal("Forint", Currency.HUF.Name); Assert.Equal(2, Currency.HUF.MinorUnits); @@ -583,7 +583,7 @@ public void Test_Currency_HUF_Properties() [Fact] public void Test_Currency_IDR_Properties() { - Assert.Equal("IDR", Currency.IDR.LetterCode); + Assert.Equal("IDR", Currency.IDR.AlphabeticCode); Assert.Equal("360", Currency.IDR.NumericCode); Assert.Equal("Rupiah", Currency.IDR.Name); Assert.Equal(2, Currency.IDR.MinorUnits); @@ -592,7 +592,7 @@ public void Test_Currency_IDR_Properties() [Fact] public void Test_Currency_ILS_Properties() { - Assert.Equal("ILS", Currency.ILS.LetterCode); + Assert.Equal("ILS", Currency.ILS.AlphabeticCode); Assert.Equal("376", Currency.ILS.NumericCode); Assert.Equal("New Israeli Sheqel", Currency.ILS.Name); Assert.Equal(2, Currency.ILS.MinorUnits); @@ -601,7 +601,7 @@ public void Test_Currency_ILS_Properties() [Fact] public void Test_Currency_INR_Properties() { - Assert.Equal("INR", Currency.INR.LetterCode); + Assert.Equal("INR", Currency.INR.AlphabeticCode); Assert.Equal("356", Currency.INR.NumericCode); Assert.Equal("Indian Rupee", Currency.INR.Name); Assert.Equal(2, Currency.INR.MinorUnits); @@ -610,7 +610,7 @@ public void Test_Currency_INR_Properties() [Fact] public void Test_Currency_IQD_Properties() { - Assert.Equal("IQD", Currency.IQD.LetterCode); + Assert.Equal("IQD", Currency.IQD.AlphabeticCode); Assert.Equal("368", Currency.IQD.NumericCode); Assert.Equal("Iraqi Dinar", Currency.IQD.Name); Assert.Equal(3, Currency.IQD.MinorUnits); @@ -619,7 +619,7 @@ public void Test_Currency_IQD_Properties() [Fact] public void Test_Currency_IRR_Properties() { - Assert.Equal("IRR", Currency.IRR.LetterCode); + Assert.Equal("IRR", Currency.IRR.AlphabeticCode); Assert.Equal("364", Currency.IRR.NumericCode); Assert.Equal("Iranian Rial", Currency.IRR.Name); Assert.Equal(2, Currency.IRR.MinorUnits); @@ -628,7 +628,7 @@ public void Test_Currency_IRR_Properties() [Fact] public void Test_Currency_ISK_Properties() { - Assert.Equal("ISK", Currency.ISK.LetterCode); + Assert.Equal("ISK", Currency.ISK.AlphabeticCode); Assert.Equal("352", Currency.ISK.NumericCode); Assert.Equal("Iceland Krona", Currency.ISK.Name); Assert.Equal(0, Currency.ISK.MinorUnits); @@ -637,7 +637,7 @@ public void Test_Currency_ISK_Properties() [Fact] public void Test_Currency_JMD_Properties() { - Assert.Equal("JMD", Currency.JMD.LetterCode); + Assert.Equal("JMD", Currency.JMD.AlphabeticCode); Assert.Equal("388", Currency.JMD.NumericCode); Assert.Equal("Jamaican Dollar", Currency.JMD.Name); Assert.Equal(2, Currency.JMD.MinorUnits); @@ -646,7 +646,7 @@ public void Test_Currency_JMD_Properties() [Fact] public void Test_Currency_JOD_Properties() { - Assert.Equal("JOD", Currency.JOD.LetterCode); + Assert.Equal("JOD", Currency.JOD.AlphabeticCode); Assert.Equal("400", Currency.JOD.NumericCode); Assert.Equal("Jordanian Dinar", Currency.JOD.Name); Assert.Equal(3, Currency.JOD.MinorUnits); @@ -655,7 +655,7 @@ public void Test_Currency_JOD_Properties() [Fact] public void Test_Currency_JPY_Properties() { - Assert.Equal("JPY", Currency.JPY.LetterCode); + Assert.Equal("JPY", Currency.JPY.AlphabeticCode); Assert.Equal("392", Currency.JPY.NumericCode); Assert.Equal("Yen", Currency.JPY.Name); Assert.Equal(0, Currency.JPY.MinorUnits); @@ -664,7 +664,7 @@ public void Test_Currency_JPY_Properties() [Fact] public void Test_Currency_KES_Properties() { - Assert.Equal("KES", Currency.KES.LetterCode); + Assert.Equal("KES", Currency.KES.AlphabeticCode); Assert.Equal("404", Currency.KES.NumericCode); Assert.Equal("Kenyan Shilling", Currency.KES.Name); Assert.Equal(2, Currency.KES.MinorUnits); @@ -673,7 +673,7 @@ public void Test_Currency_KES_Properties() [Fact] public void Test_Currency_KGS_Properties() { - Assert.Equal("KGS", Currency.KGS.LetterCode); + Assert.Equal("KGS", Currency.KGS.AlphabeticCode); Assert.Equal("417", Currency.KGS.NumericCode); Assert.Equal("Som", Currency.KGS.Name); Assert.Equal(2, Currency.KGS.MinorUnits); @@ -682,7 +682,7 @@ public void Test_Currency_KGS_Properties() [Fact] public void Test_Currency_KHR_Properties() { - Assert.Equal("KHR", Currency.KHR.LetterCode); + Assert.Equal("KHR", Currency.KHR.AlphabeticCode); Assert.Equal("116", Currency.KHR.NumericCode); Assert.Equal("Riel", Currency.KHR.Name); Assert.Equal(2, Currency.KHR.MinorUnits); @@ -691,7 +691,7 @@ public void Test_Currency_KHR_Properties() [Fact] public void Test_Currency_KMF_Properties() { - Assert.Equal("KMF", Currency.KMF.LetterCode); + Assert.Equal("KMF", Currency.KMF.AlphabeticCode); Assert.Equal("174", Currency.KMF.NumericCode); Assert.Equal("Comoro Franc", Currency.KMF.Name); Assert.Equal(0, Currency.KMF.MinorUnits); @@ -700,7 +700,7 @@ public void Test_Currency_KMF_Properties() [Fact] public void Test_Currency_KPW_Properties() { - Assert.Equal("KPW", Currency.KPW.LetterCode); + Assert.Equal("KPW", Currency.KPW.AlphabeticCode); Assert.Equal("408", Currency.KPW.NumericCode); Assert.Equal("North Korean Won", Currency.KPW.Name); Assert.Equal(2, Currency.KPW.MinorUnits); @@ -709,7 +709,7 @@ public void Test_Currency_KPW_Properties() [Fact] public void Test_Currency_KRW_Properties() { - Assert.Equal("KRW", Currency.KRW.LetterCode); + Assert.Equal("KRW", Currency.KRW.AlphabeticCode); Assert.Equal("410", Currency.KRW.NumericCode); Assert.Equal("Won", Currency.KRW.Name); Assert.Equal(0, Currency.KRW.MinorUnits); @@ -718,7 +718,7 @@ public void Test_Currency_KRW_Properties() [Fact] public void Test_Currency_KWD_Properties() { - Assert.Equal("KWD", Currency.KWD.LetterCode); + Assert.Equal("KWD", Currency.KWD.AlphabeticCode); Assert.Equal("414", Currency.KWD.NumericCode); Assert.Equal("Kuwaiti Dinar", Currency.KWD.Name); Assert.Equal(3, Currency.KWD.MinorUnits); @@ -727,7 +727,7 @@ public void Test_Currency_KWD_Properties() [Fact] public void Test_Currency_KYD_Properties() { - Assert.Equal("KYD", Currency.KYD.LetterCode); + Assert.Equal("KYD", Currency.KYD.AlphabeticCode); Assert.Equal("136", Currency.KYD.NumericCode); Assert.Equal("Cayman Islands Dollar", Currency.KYD.Name); Assert.Equal(2, Currency.KYD.MinorUnits); @@ -736,7 +736,7 @@ public void Test_Currency_KYD_Properties() [Fact] public void Test_Currency_KZT_Properties() { - Assert.Equal("KZT", Currency.KZT.LetterCode); + Assert.Equal("KZT", Currency.KZT.AlphabeticCode); Assert.Equal("398", Currency.KZT.NumericCode); Assert.Equal("Tenge", Currency.KZT.Name); Assert.Equal(2, Currency.KZT.MinorUnits); @@ -745,7 +745,7 @@ public void Test_Currency_KZT_Properties() [Fact] public void Test_Currency_LAK_Properties() { - Assert.Equal("LAK", Currency.LAK.LetterCode); + Assert.Equal("LAK", Currency.LAK.AlphabeticCode); Assert.Equal("418", Currency.LAK.NumericCode); Assert.Equal("Kip", Currency.LAK.Name); Assert.Equal(2, Currency.LAK.MinorUnits); @@ -754,7 +754,7 @@ public void Test_Currency_LAK_Properties() [Fact] public void Test_Currency_LBP_Properties() { - Assert.Equal("LBP", Currency.LBP.LetterCode); + Assert.Equal("LBP", Currency.LBP.AlphabeticCode); Assert.Equal("422", Currency.LBP.NumericCode); Assert.Equal("Lebanese Pound", Currency.LBP.Name); Assert.Equal(2, Currency.LBP.MinorUnits); @@ -763,7 +763,7 @@ public void Test_Currency_LBP_Properties() [Fact] public void Test_Currency_LKR_Properties() { - Assert.Equal("LKR", Currency.LKR.LetterCode); + Assert.Equal("LKR", Currency.LKR.AlphabeticCode); Assert.Equal("144", Currency.LKR.NumericCode); Assert.Equal("Sri Lanka Rupee", Currency.LKR.Name); Assert.Equal(2, Currency.LKR.MinorUnits); @@ -772,7 +772,7 @@ public void Test_Currency_LKR_Properties() [Fact] public void Test_Currency_LRD_Properties() { - Assert.Equal("LRD", Currency.LRD.LetterCode); + Assert.Equal("LRD", Currency.LRD.AlphabeticCode); Assert.Equal("430", Currency.LRD.NumericCode); Assert.Equal("Liberian Dollar", Currency.LRD.Name); Assert.Equal(2, Currency.LRD.MinorUnits); @@ -781,7 +781,7 @@ public void Test_Currency_LRD_Properties() [Fact] public void Test_Currency_LSL_Properties() { - Assert.Equal("LSL", Currency.LSL.LetterCode); + Assert.Equal("LSL", Currency.LSL.AlphabeticCode); Assert.Equal("426", Currency.LSL.NumericCode); Assert.Equal("Loti", Currency.LSL.Name); Assert.Equal(2, Currency.LSL.MinorUnits); @@ -790,7 +790,7 @@ public void Test_Currency_LSL_Properties() [Fact] public void Test_Currency_LYD_Properties() { - Assert.Equal("LYD", Currency.LYD.LetterCode); + Assert.Equal("LYD", Currency.LYD.AlphabeticCode); Assert.Equal("434", Currency.LYD.NumericCode); Assert.Equal("Libyan Dinar", Currency.LYD.Name); Assert.Equal(3, Currency.LYD.MinorUnits); @@ -799,7 +799,7 @@ public void Test_Currency_LYD_Properties() [Fact] public void Test_Currency_MAD_Properties() { - Assert.Equal("MAD", Currency.MAD.LetterCode); + Assert.Equal("MAD", Currency.MAD.AlphabeticCode); Assert.Equal("504", Currency.MAD.NumericCode); Assert.Equal("Moroccan Dirham", Currency.MAD.Name); Assert.Equal(2, Currency.MAD.MinorUnits); @@ -808,7 +808,7 @@ public void Test_Currency_MAD_Properties() [Fact] public void Test_Currency_MDL_Properties() { - Assert.Equal("MDL", Currency.MDL.LetterCode); + Assert.Equal("MDL", Currency.MDL.AlphabeticCode); Assert.Equal("498", Currency.MDL.NumericCode); Assert.Equal("Moldovan Leu", Currency.MDL.Name); Assert.Equal(2, Currency.MDL.MinorUnits); @@ -817,7 +817,7 @@ public void Test_Currency_MDL_Properties() [Fact] public void Test_Currency_MGA_Properties() { - Assert.Equal("MGA", Currency.MGA.LetterCode); + Assert.Equal("MGA", Currency.MGA.AlphabeticCode); Assert.Equal("969", Currency.MGA.NumericCode); Assert.Equal("Malagasy Ariary", Currency.MGA.Name); Assert.Equal(2, Currency.MGA.MinorUnits); @@ -826,7 +826,7 @@ public void Test_Currency_MGA_Properties() [Fact] public void Test_Currency_MKD_Properties() { - Assert.Equal("MKD", Currency.MKD.LetterCode); + Assert.Equal("MKD", Currency.MKD.AlphabeticCode); Assert.Equal("807", Currency.MKD.NumericCode); Assert.Equal("Denar", Currency.MKD.Name); Assert.Equal(2, Currency.MKD.MinorUnits); @@ -835,7 +835,7 @@ public void Test_Currency_MKD_Properties() [Fact] public void Test_Currency_MMK_Properties() { - Assert.Equal("MMK", Currency.MMK.LetterCode); + Assert.Equal("MMK", Currency.MMK.AlphabeticCode); Assert.Equal("104", Currency.MMK.NumericCode); Assert.Equal("Kyat", Currency.MMK.Name); Assert.Equal(2, Currency.MMK.MinorUnits); @@ -844,7 +844,7 @@ public void Test_Currency_MMK_Properties() [Fact] public void Test_Currency_MNT_Properties() { - Assert.Equal("MNT", Currency.MNT.LetterCode); + Assert.Equal("MNT", Currency.MNT.AlphabeticCode); Assert.Equal("496", Currency.MNT.NumericCode); Assert.Equal("Tugrik", Currency.MNT.Name); Assert.Equal(2, Currency.MNT.MinorUnits); @@ -853,7 +853,7 @@ public void Test_Currency_MNT_Properties() [Fact] public void Test_Currency_MOP_Properties() { - Assert.Equal("MOP", Currency.MOP.LetterCode); + Assert.Equal("MOP", Currency.MOP.AlphabeticCode); Assert.Equal("446", Currency.MOP.NumericCode); Assert.Equal("Pataca", Currency.MOP.Name); Assert.Equal(2, Currency.MOP.MinorUnits); @@ -862,7 +862,7 @@ public void Test_Currency_MOP_Properties() [Fact] public void Test_Currency_MRO_Properties() { - Assert.Equal("MRO", Currency.MRO.LetterCode); + Assert.Equal("MRO", Currency.MRO.AlphabeticCode); Assert.Equal("478", Currency.MRO.NumericCode); Assert.Equal("Ouguiya", Currency.MRO.Name); Assert.Equal(2, Currency.MRO.MinorUnits); @@ -871,7 +871,7 @@ public void Test_Currency_MRO_Properties() [Fact] public void Test_Currency_MUR_Properties() { - Assert.Equal("MUR", Currency.MUR.LetterCode); + Assert.Equal("MUR", Currency.MUR.AlphabeticCode); Assert.Equal("480", Currency.MUR.NumericCode); Assert.Equal("Mauritius Rupee", Currency.MUR.Name); Assert.Equal(2, Currency.MUR.MinorUnits); @@ -880,7 +880,7 @@ public void Test_Currency_MUR_Properties() [Fact] public void Test_Currency_MVR_Properties() { - Assert.Equal("MVR", Currency.MVR.LetterCode); + Assert.Equal("MVR", Currency.MVR.AlphabeticCode); Assert.Equal("462", Currency.MVR.NumericCode); Assert.Equal("Rufiyaa", Currency.MVR.Name); Assert.Equal(2, Currency.MVR.MinorUnits); @@ -889,7 +889,7 @@ public void Test_Currency_MVR_Properties() [Fact] public void Test_Currency_MWK_Properties() { - Assert.Equal("MWK", Currency.MWK.LetterCode); + Assert.Equal("MWK", Currency.MWK.AlphabeticCode); Assert.Equal("454", Currency.MWK.NumericCode); Assert.Equal("Malawi Kwacha", Currency.MWK.Name); Assert.Equal(2, Currency.MWK.MinorUnits); @@ -898,7 +898,7 @@ public void Test_Currency_MWK_Properties() [Fact] public void Test_Currency_MXN_Properties() { - Assert.Equal("MXN", Currency.MXN.LetterCode); + Assert.Equal("MXN", Currency.MXN.AlphabeticCode); Assert.Equal("484", Currency.MXN.NumericCode); Assert.Equal("Mexican Peso", Currency.MXN.Name); Assert.Equal(2, Currency.MXN.MinorUnits); @@ -907,7 +907,7 @@ public void Test_Currency_MXN_Properties() [Fact] public void Test_Currency_MXV_Properties() { - Assert.Equal("MXV", Currency.MXV.LetterCode); + Assert.Equal("MXV", Currency.MXV.AlphabeticCode); Assert.Equal("979", Currency.MXV.NumericCode); Assert.Equal("Mexican Unidad de Inversion (UDI)", Currency.MXV.Name); Assert.Equal(2, Currency.MXV.MinorUnits); @@ -916,7 +916,7 @@ public void Test_Currency_MXV_Properties() [Fact] public void Test_Currency_MYR_Properties() { - Assert.Equal("MYR", Currency.MYR.LetterCode); + Assert.Equal("MYR", Currency.MYR.AlphabeticCode); Assert.Equal("458", Currency.MYR.NumericCode); Assert.Equal("Malaysian Ringgit", Currency.MYR.Name); Assert.Equal(2, Currency.MYR.MinorUnits); @@ -925,7 +925,7 @@ public void Test_Currency_MYR_Properties() [Fact] public void Test_Currency_MZN_Properties() { - Assert.Equal("MZN", Currency.MZN.LetterCode); + Assert.Equal("MZN", Currency.MZN.AlphabeticCode); Assert.Equal("943", Currency.MZN.NumericCode); Assert.Equal("Mozambique Metical", Currency.MZN.Name); Assert.Equal(2, Currency.MZN.MinorUnits); @@ -934,7 +934,7 @@ public void Test_Currency_MZN_Properties() [Fact] public void Test_Currency_NAD_Properties() { - Assert.Equal("NAD", Currency.NAD.LetterCode); + Assert.Equal("NAD", Currency.NAD.AlphabeticCode); Assert.Equal("516", Currency.NAD.NumericCode); Assert.Equal("Namibia Dollar", Currency.NAD.Name); Assert.Equal(2, Currency.NAD.MinorUnits); @@ -943,7 +943,7 @@ public void Test_Currency_NAD_Properties() [Fact] public void Test_Currency_NGN_Properties() { - Assert.Equal("NGN", Currency.NGN.LetterCode); + Assert.Equal("NGN", Currency.NGN.AlphabeticCode); Assert.Equal("566", Currency.NGN.NumericCode); Assert.Equal("Naira", Currency.NGN.Name); Assert.Equal(2, Currency.NGN.MinorUnits); @@ -952,7 +952,7 @@ public void Test_Currency_NGN_Properties() [Fact] public void Test_Currency_NIO_Properties() { - Assert.Equal("NIO", Currency.NIO.LetterCode); + Assert.Equal("NIO", Currency.NIO.AlphabeticCode); Assert.Equal("558", Currency.NIO.NumericCode); Assert.Equal("Cordoba Oro", Currency.NIO.Name); Assert.Equal(2, Currency.NIO.MinorUnits); @@ -961,7 +961,7 @@ public void Test_Currency_NIO_Properties() [Fact] public void Test_Currency_NOK_Properties() { - Assert.Equal("NOK", Currency.NOK.LetterCode); + Assert.Equal("NOK", Currency.NOK.AlphabeticCode); Assert.Equal("578", Currency.NOK.NumericCode); Assert.Equal("Norwegian Krone", Currency.NOK.Name); Assert.Equal(2, Currency.NOK.MinorUnits); @@ -970,7 +970,7 @@ public void Test_Currency_NOK_Properties() [Fact] public void Test_Currency_NPR_Properties() { - Assert.Equal("NPR", Currency.NPR.LetterCode); + Assert.Equal("NPR", Currency.NPR.AlphabeticCode); Assert.Equal("524", Currency.NPR.NumericCode); Assert.Equal("Nepalese Rupee", Currency.NPR.Name); Assert.Equal(2, Currency.NPR.MinorUnits); @@ -979,7 +979,7 @@ public void Test_Currency_NPR_Properties() [Fact] public void Test_Currency_NZD_Properties() { - Assert.Equal("NZD", Currency.NZD.LetterCode); + Assert.Equal("NZD", Currency.NZD.AlphabeticCode); Assert.Equal("554", Currency.NZD.NumericCode); Assert.Equal("New Zealand Dollar", Currency.NZD.Name); Assert.Equal(2, Currency.NZD.MinorUnits); @@ -988,7 +988,7 @@ public void Test_Currency_NZD_Properties() [Fact] public void Test_Currency_OMR_Properties() { - Assert.Equal("OMR", Currency.OMR.LetterCode); + Assert.Equal("OMR", Currency.OMR.AlphabeticCode); Assert.Equal("512", Currency.OMR.NumericCode); Assert.Equal("Rial Omani", Currency.OMR.Name); Assert.Equal(3, Currency.OMR.MinorUnits); @@ -997,7 +997,7 @@ public void Test_Currency_OMR_Properties() [Fact] public void Test_Currency_PAB_Properties() { - Assert.Equal("PAB", Currency.PAB.LetterCode); + Assert.Equal("PAB", Currency.PAB.AlphabeticCode); Assert.Equal("590", Currency.PAB.NumericCode); Assert.Equal("Balboa", Currency.PAB.Name); Assert.Equal(2, Currency.PAB.MinorUnits); @@ -1006,7 +1006,7 @@ public void Test_Currency_PAB_Properties() [Fact] public void Test_Currency_PEN_Properties() { - Assert.Equal("PEN", Currency.PEN.LetterCode); + Assert.Equal("PEN", Currency.PEN.AlphabeticCode); Assert.Equal("604", Currency.PEN.NumericCode); Assert.Equal("Sol", Currency.PEN.Name); Assert.Equal(2, Currency.PEN.MinorUnits); @@ -1015,7 +1015,7 @@ public void Test_Currency_PEN_Properties() [Fact] public void Test_Currency_PGK_Properties() { - Assert.Equal("PGK", Currency.PGK.LetterCode); + Assert.Equal("PGK", Currency.PGK.AlphabeticCode); Assert.Equal("598", Currency.PGK.NumericCode); Assert.Equal("Kina", Currency.PGK.Name); Assert.Equal(2, Currency.PGK.MinorUnits); @@ -1024,7 +1024,7 @@ public void Test_Currency_PGK_Properties() [Fact] public void Test_Currency_PHP_Properties() { - Assert.Equal("PHP", Currency.PHP.LetterCode); + Assert.Equal("PHP", Currency.PHP.AlphabeticCode); Assert.Equal("608", Currency.PHP.NumericCode); Assert.Equal("Philippine Peso", Currency.PHP.Name); Assert.Equal(2, Currency.PHP.MinorUnits); @@ -1033,7 +1033,7 @@ public void Test_Currency_PHP_Properties() [Fact] public void Test_Currency_PKR_Properties() { - Assert.Equal("PKR", Currency.PKR.LetterCode); + Assert.Equal("PKR", Currency.PKR.AlphabeticCode); Assert.Equal("586", Currency.PKR.NumericCode); Assert.Equal("Pakistan Rupee", Currency.PKR.Name); Assert.Equal(2, Currency.PKR.MinorUnits); @@ -1042,7 +1042,7 @@ public void Test_Currency_PKR_Properties() [Fact] public void Test_Currency_PLN_Properties() { - Assert.Equal("PLN", Currency.PLN.LetterCode); + Assert.Equal("PLN", Currency.PLN.AlphabeticCode); Assert.Equal("985", Currency.PLN.NumericCode); Assert.Equal("Zloty", Currency.PLN.Name); Assert.Equal(2, Currency.PLN.MinorUnits); @@ -1051,7 +1051,7 @@ public void Test_Currency_PLN_Properties() [Fact] public void Test_Currency_PYG_Properties() { - Assert.Equal("PYG", Currency.PYG.LetterCode); + Assert.Equal("PYG", Currency.PYG.AlphabeticCode); Assert.Equal("600", Currency.PYG.NumericCode); Assert.Equal("Guarani", Currency.PYG.Name); Assert.Equal(0, Currency.PYG.MinorUnits); @@ -1060,7 +1060,7 @@ public void Test_Currency_PYG_Properties() [Fact] public void Test_Currency_QAR_Properties() { - Assert.Equal("QAR", Currency.QAR.LetterCode); + Assert.Equal("QAR", Currency.QAR.AlphabeticCode); Assert.Equal("634", Currency.QAR.NumericCode); Assert.Equal("Qatari Rial", Currency.QAR.Name); Assert.Equal(2, Currency.QAR.MinorUnits); @@ -1069,7 +1069,7 @@ public void Test_Currency_QAR_Properties() [Fact] public void Test_Currency_RON_Properties() { - Assert.Equal("RON", Currency.RON.LetterCode); + Assert.Equal("RON", Currency.RON.AlphabeticCode); Assert.Equal("946", Currency.RON.NumericCode); Assert.Equal("Romanian Leu", Currency.RON.Name); Assert.Equal(2, Currency.RON.MinorUnits); @@ -1078,7 +1078,7 @@ public void Test_Currency_RON_Properties() [Fact] public void Test_Currency_RSD_Properties() { - Assert.Equal("RSD", Currency.RSD.LetterCode); + Assert.Equal("RSD", Currency.RSD.AlphabeticCode); Assert.Equal("941", Currency.RSD.NumericCode); Assert.Equal("Serbian Dinar", Currency.RSD.Name); Assert.Equal(2, Currency.RSD.MinorUnits); @@ -1087,7 +1087,7 @@ public void Test_Currency_RSD_Properties() [Fact] public void Test_Currency_RUB_Properties() { - Assert.Equal("RUB", Currency.RUB.LetterCode); + Assert.Equal("RUB", Currency.RUB.AlphabeticCode); Assert.Equal("643", Currency.RUB.NumericCode); Assert.Equal("Russian Ruble", Currency.RUB.Name); Assert.Equal(2, Currency.RUB.MinorUnits); @@ -1096,7 +1096,7 @@ public void Test_Currency_RUB_Properties() [Fact] public void Test_Currency_RWF_Properties() { - Assert.Equal("RWF", Currency.RWF.LetterCode); + Assert.Equal("RWF", Currency.RWF.AlphabeticCode); Assert.Equal("646", Currency.RWF.NumericCode); Assert.Equal("Rwanda Franc", Currency.RWF.Name); Assert.Equal(0, Currency.RWF.MinorUnits); @@ -1105,7 +1105,7 @@ public void Test_Currency_RWF_Properties() [Fact] public void Test_Currency_SAR_Properties() { - Assert.Equal("SAR", Currency.SAR.LetterCode); + Assert.Equal("SAR", Currency.SAR.AlphabeticCode); Assert.Equal("682", Currency.SAR.NumericCode); Assert.Equal("Saudi Riyal", Currency.SAR.Name); Assert.Equal(2, Currency.SAR.MinorUnits); @@ -1114,7 +1114,7 @@ public void Test_Currency_SAR_Properties() [Fact] public void Test_Currency_SBD_Properties() { - Assert.Equal("SBD", Currency.SBD.LetterCode); + Assert.Equal("SBD", Currency.SBD.AlphabeticCode); Assert.Equal("090", Currency.SBD.NumericCode); Assert.Equal("Solomon Islands Dollar", Currency.SBD.Name); Assert.Equal(2, Currency.SBD.MinorUnits); @@ -1123,7 +1123,7 @@ public void Test_Currency_SBD_Properties() [Fact] public void Test_Currency_SCR_Properties() { - Assert.Equal("SCR", Currency.SCR.LetterCode); + Assert.Equal("SCR", Currency.SCR.AlphabeticCode); Assert.Equal("690", Currency.SCR.NumericCode); Assert.Equal("Seychelles Rupee", Currency.SCR.Name); Assert.Equal(2, Currency.SCR.MinorUnits); @@ -1132,7 +1132,7 @@ public void Test_Currency_SCR_Properties() [Fact] public void Test_Currency_SDG_Properties() { - Assert.Equal("SDG", Currency.SDG.LetterCode); + Assert.Equal("SDG", Currency.SDG.AlphabeticCode); Assert.Equal("938", Currency.SDG.NumericCode); Assert.Equal("Sudanese Pound", Currency.SDG.Name); Assert.Equal(2, Currency.SDG.MinorUnits); @@ -1141,7 +1141,7 @@ public void Test_Currency_SDG_Properties() [Fact] public void Test_Currency_SEK_Properties() { - Assert.Equal("SEK", Currency.SEK.LetterCode); + Assert.Equal("SEK", Currency.SEK.AlphabeticCode); Assert.Equal("752", Currency.SEK.NumericCode); Assert.Equal("Swedish Krona", Currency.SEK.Name); Assert.Equal(2, Currency.SEK.MinorUnits); @@ -1150,7 +1150,7 @@ public void Test_Currency_SEK_Properties() [Fact] public void Test_Currency_SGD_Properties() { - Assert.Equal("SGD", Currency.SGD.LetterCode); + Assert.Equal("SGD", Currency.SGD.AlphabeticCode); Assert.Equal("702", Currency.SGD.NumericCode); Assert.Equal("Singapore Dollar", Currency.SGD.Name); Assert.Equal(2, Currency.SGD.MinorUnits); @@ -1159,7 +1159,7 @@ public void Test_Currency_SGD_Properties() [Fact] public void Test_Currency_SHP_Properties() { - Assert.Equal("SHP", Currency.SHP.LetterCode); + Assert.Equal("SHP", Currency.SHP.AlphabeticCode); Assert.Equal("654", Currency.SHP.NumericCode); Assert.Equal("Saint Helena Pound", Currency.SHP.Name); Assert.Equal(2, Currency.SHP.MinorUnits); @@ -1168,7 +1168,7 @@ public void Test_Currency_SHP_Properties() [Fact] public void Test_Currency_SLL_Properties() { - Assert.Equal("SLL", Currency.SLL.LetterCode); + Assert.Equal("SLL", Currency.SLL.AlphabeticCode); Assert.Equal("694", Currency.SLL.NumericCode); Assert.Equal("Leone", Currency.SLL.Name); Assert.Equal(2, Currency.SLL.MinorUnits); @@ -1177,7 +1177,7 @@ public void Test_Currency_SLL_Properties() [Fact] public void Test_Currency_SOS_Properties() { - Assert.Equal("SOS", Currency.SOS.LetterCode); + Assert.Equal("SOS", Currency.SOS.AlphabeticCode); Assert.Equal("706", Currency.SOS.NumericCode); Assert.Equal("Somali Shilling", Currency.SOS.Name); Assert.Equal(2, Currency.SOS.MinorUnits); @@ -1186,7 +1186,7 @@ public void Test_Currency_SOS_Properties() [Fact] public void Test_Currency_SRD_Properties() { - Assert.Equal("SRD", Currency.SRD.LetterCode); + Assert.Equal("SRD", Currency.SRD.AlphabeticCode); Assert.Equal("968", Currency.SRD.NumericCode); Assert.Equal("Surinam Dollar", Currency.SRD.Name); Assert.Equal(2, Currency.SRD.MinorUnits); @@ -1195,7 +1195,7 @@ public void Test_Currency_SRD_Properties() [Fact] public void Test_Currency_SSP_Properties() { - Assert.Equal("SSP", Currency.SSP.LetterCode); + Assert.Equal("SSP", Currency.SSP.AlphabeticCode); Assert.Equal("728", Currency.SSP.NumericCode); Assert.Equal("South Sudanese Pound", Currency.SSP.Name); Assert.Equal(2, Currency.SSP.MinorUnits); @@ -1204,7 +1204,7 @@ public void Test_Currency_SSP_Properties() [Fact] public void Test_Currency_STD_Properties() { - Assert.Equal("STD", Currency.STD.LetterCode); + Assert.Equal("STD", Currency.STD.AlphabeticCode); Assert.Equal("678", Currency.STD.NumericCode); Assert.Equal("Dobra", Currency.STD.Name); Assert.Equal(2, Currency.STD.MinorUnits); @@ -1213,7 +1213,7 @@ public void Test_Currency_STD_Properties() [Fact] public void Test_Currency_SVC_Properties() { - Assert.Equal("SVC", Currency.SVC.LetterCode); + Assert.Equal("SVC", Currency.SVC.AlphabeticCode); Assert.Equal("222", Currency.SVC.NumericCode); Assert.Equal("El Salvador Colon", Currency.SVC.Name); Assert.Equal(2, Currency.SVC.MinorUnits); @@ -1222,7 +1222,7 @@ public void Test_Currency_SVC_Properties() [Fact] public void Test_Currency_SYP_Properties() { - Assert.Equal("SYP", Currency.SYP.LetterCode); + Assert.Equal("SYP", Currency.SYP.AlphabeticCode); Assert.Equal("760", Currency.SYP.NumericCode); Assert.Equal("Syrian Pound", Currency.SYP.Name); Assert.Equal(2, Currency.SYP.MinorUnits); @@ -1231,7 +1231,7 @@ public void Test_Currency_SYP_Properties() [Fact] public void Test_Currency_SZL_Properties() { - Assert.Equal("SZL", Currency.SZL.LetterCode); + Assert.Equal("SZL", Currency.SZL.AlphabeticCode); Assert.Equal("748", Currency.SZL.NumericCode); Assert.Equal("Lilangeni", Currency.SZL.Name); Assert.Equal(2, Currency.SZL.MinorUnits); @@ -1240,7 +1240,7 @@ public void Test_Currency_SZL_Properties() [Fact] public void Test_Currency_THB_Properties() { - Assert.Equal("THB", Currency.THB.LetterCode); + Assert.Equal("THB", Currency.THB.AlphabeticCode); Assert.Equal("764", Currency.THB.NumericCode); Assert.Equal("Baht", Currency.THB.Name); Assert.Equal(2, Currency.THB.MinorUnits); @@ -1249,7 +1249,7 @@ public void Test_Currency_THB_Properties() [Fact] public void Test_Currency_TJS_Properties() { - Assert.Equal("TJS", Currency.TJS.LetterCode); + Assert.Equal("TJS", Currency.TJS.AlphabeticCode); Assert.Equal("972", Currency.TJS.NumericCode); Assert.Equal("Somoni", Currency.TJS.Name); Assert.Equal(2, Currency.TJS.MinorUnits); @@ -1258,7 +1258,7 @@ public void Test_Currency_TJS_Properties() [Fact] public void Test_Currency_TMT_Properties() { - Assert.Equal("TMT", Currency.TMT.LetterCode); + Assert.Equal("TMT", Currency.TMT.AlphabeticCode); Assert.Equal("934", Currency.TMT.NumericCode); Assert.Equal("Turkmenistan New Manat", Currency.TMT.Name); Assert.Equal(2, Currency.TMT.MinorUnits); @@ -1267,7 +1267,7 @@ public void Test_Currency_TMT_Properties() [Fact] public void Test_Currency_TND_Properties() { - Assert.Equal("TND", Currency.TND.LetterCode); + Assert.Equal("TND", Currency.TND.AlphabeticCode); Assert.Equal("788", Currency.TND.NumericCode); Assert.Equal("Tunisian Dinar", Currency.TND.Name); Assert.Equal(3, Currency.TND.MinorUnits); @@ -1276,7 +1276,7 @@ public void Test_Currency_TND_Properties() [Fact] public void Test_Currency_TOP_Properties() { - Assert.Equal("TOP", Currency.TOP.LetterCode); + Assert.Equal("TOP", Currency.TOP.AlphabeticCode); Assert.Equal("776", Currency.TOP.NumericCode); Assert.Equal("Pa’anga", Currency.TOP.Name); Assert.Equal(2, Currency.TOP.MinorUnits); @@ -1285,7 +1285,7 @@ public void Test_Currency_TOP_Properties() [Fact] public void Test_Currency_TRY_Properties() { - Assert.Equal("TRY", Currency.TRY.LetterCode); + Assert.Equal("TRY", Currency.TRY.AlphabeticCode); Assert.Equal("949", Currency.TRY.NumericCode); Assert.Equal("Turkish Lira", Currency.TRY.Name); Assert.Equal(2, Currency.TRY.MinorUnits); @@ -1294,7 +1294,7 @@ public void Test_Currency_TRY_Properties() [Fact] public void Test_Currency_TTD_Properties() { - Assert.Equal("TTD", Currency.TTD.LetterCode); + Assert.Equal("TTD", Currency.TTD.AlphabeticCode); Assert.Equal("780", Currency.TTD.NumericCode); Assert.Equal("Trinidad and Tobago Dollar", Currency.TTD.Name); Assert.Equal(2, Currency.TTD.MinorUnits); @@ -1303,7 +1303,7 @@ public void Test_Currency_TTD_Properties() [Fact] public void Test_Currency_TWD_Properties() { - Assert.Equal("TWD", Currency.TWD.LetterCode); + Assert.Equal("TWD", Currency.TWD.AlphabeticCode); Assert.Equal("901", Currency.TWD.NumericCode); Assert.Equal("New Taiwan Dollar", Currency.TWD.Name); Assert.Equal(2, Currency.TWD.MinorUnits); @@ -1312,7 +1312,7 @@ public void Test_Currency_TWD_Properties() [Fact] public void Test_Currency_TZS_Properties() { - Assert.Equal("TZS", Currency.TZS.LetterCode); + Assert.Equal("TZS", Currency.TZS.AlphabeticCode); Assert.Equal("834", Currency.TZS.NumericCode); Assert.Equal("Tanzanian Shilling", Currency.TZS.Name); Assert.Equal(2, Currency.TZS.MinorUnits); @@ -1321,7 +1321,7 @@ public void Test_Currency_TZS_Properties() [Fact] public void Test_Currency_UAH_Properties() { - Assert.Equal("UAH", Currency.UAH.LetterCode); + Assert.Equal("UAH", Currency.UAH.AlphabeticCode); Assert.Equal("980", Currency.UAH.NumericCode); Assert.Equal("Hryvnia", Currency.UAH.Name); Assert.Equal(2, Currency.UAH.MinorUnits); @@ -1330,7 +1330,7 @@ public void Test_Currency_UAH_Properties() [Fact] public void Test_Currency_UGX_Properties() { - Assert.Equal("UGX", Currency.UGX.LetterCode); + Assert.Equal("UGX", Currency.UGX.AlphabeticCode); Assert.Equal("800", Currency.UGX.NumericCode); Assert.Equal("Uganda Shilling", Currency.UGX.Name); Assert.Equal(0, Currency.UGX.MinorUnits); @@ -1339,7 +1339,7 @@ public void Test_Currency_UGX_Properties() [Fact] public void Test_Currency_USD_Properties() { - Assert.Equal("USD", Currency.USD.LetterCode); + Assert.Equal("USD", Currency.USD.AlphabeticCode); Assert.Equal("840", Currency.USD.NumericCode); Assert.Equal("US Dollar", Currency.USD.Name); Assert.Equal(2, Currency.USD.MinorUnits); @@ -1348,7 +1348,7 @@ public void Test_Currency_USD_Properties() [Fact] public void Test_Currency_USN_Properties() { - Assert.Equal("USN", Currency.USN.LetterCode); + Assert.Equal("USN", Currency.USN.AlphabeticCode); Assert.Equal("997", Currency.USN.NumericCode); Assert.Equal("US Dollar (Next day)", Currency.USN.Name); Assert.Equal(2, Currency.USN.MinorUnits); @@ -1357,7 +1357,7 @@ public void Test_Currency_USN_Properties() [Fact] public void Test_Currency_UYI_Properties() { - Assert.Equal("UYI", Currency.UYI.LetterCode); + Assert.Equal("UYI", Currency.UYI.AlphabeticCode); Assert.Equal("940", Currency.UYI.NumericCode); Assert.Equal("Uruguay Peso en Unidades Indexadas (URUIURUI)", Currency.UYI.Name); Assert.Equal(0, Currency.UYI.MinorUnits); @@ -1366,7 +1366,7 @@ public void Test_Currency_UYI_Properties() [Fact] public void Test_Currency_UYU_Properties() { - Assert.Equal("UYU", Currency.UYU.LetterCode); + Assert.Equal("UYU", Currency.UYU.AlphabeticCode); Assert.Equal("858", Currency.UYU.NumericCode); Assert.Equal("Peso Uruguayo", Currency.UYU.Name); Assert.Equal(2, Currency.UYU.MinorUnits); @@ -1375,7 +1375,7 @@ public void Test_Currency_UYU_Properties() [Fact] public void Test_Currency_UZS_Properties() { - Assert.Equal("UZS", Currency.UZS.LetterCode); + Assert.Equal("UZS", Currency.UZS.AlphabeticCode); Assert.Equal("860", Currency.UZS.NumericCode); Assert.Equal("Uzbekistan Sum", Currency.UZS.Name); Assert.Equal(2, Currency.UZS.MinorUnits); @@ -1384,7 +1384,7 @@ public void Test_Currency_UZS_Properties() [Fact] public void Test_Currency_VEF_Properties() { - Assert.Equal("VEF", Currency.VEF.LetterCode); + Assert.Equal("VEF", Currency.VEF.AlphabeticCode); Assert.Equal("937", Currency.VEF.NumericCode); Assert.Equal("Bolívar", Currency.VEF.Name); Assert.Equal(2, Currency.VEF.MinorUnits); @@ -1393,7 +1393,7 @@ public void Test_Currency_VEF_Properties() [Fact] public void Test_Currency_VND_Properties() { - Assert.Equal("VND", Currency.VND.LetterCode); + Assert.Equal("VND", Currency.VND.AlphabeticCode); Assert.Equal("704", Currency.VND.NumericCode); Assert.Equal("Dong", Currency.VND.Name); Assert.Equal(0, Currency.VND.MinorUnits); @@ -1402,7 +1402,7 @@ public void Test_Currency_VND_Properties() [Fact] public void Test_Currency_VUV_Properties() { - Assert.Equal("VUV", Currency.VUV.LetterCode); + Assert.Equal("VUV", Currency.VUV.AlphabeticCode); Assert.Equal("548", Currency.VUV.NumericCode); Assert.Equal("Vatu", Currency.VUV.Name); Assert.Equal(0, Currency.VUV.MinorUnits); @@ -1411,7 +1411,7 @@ public void Test_Currency_VUV_Properties() [Fact] public void Test_Currency_WST_Properties() { - Assert.Equal("WST", Currency.WST.LetterCode); + Assert.Equal("WST", Currency.WST.AlphabeticCode); Assert.Equal("882", Currency.WST.NumericCode); Assert.Equal("Tala", Currency.WST.Name); Assert.Equal(2, Currency.WST.MinorUnits); @@ -1420,7 +1420,7 @@ public void Test_Currency_WST_Properties() [Fact] public void Test_Currency_XAF_Properties() { - Assert.Equal("XAF", Currency.XAF.LetterCode); + Assert.Equal("XAF", Currency.XAF.AlphabeticCode); Assert.Equal("950", Currency.XAF.NumericCode); Assert.Equal("CFA Franc BEAC", Currency.XAF.Name); Assert.Equal(0, Currency.XAF.MinorUnits); @@ -1429,7 +1429,7 @@ public void Test_Currency_XAF_Properties() [Fact] public void Test_Currency_XAG_Properties() { - Assert.Equal("XAG", Currency.XAG.LetterCode); + Assert.Equal("XAG", Currency.XAG.AlphabeticCode); Assert.Equal("961", Currency.XAG.NumericCode); Assert.Equal("Silver", Currency.XAG.Name); Assert.Equal(0, Currency.XAG.MinorUnits); @@ -1438,7 +1438,7 @@ public void Test_Currency_XAG_Properties() [Fact] public void Test_Currency_XAU_Properties() { - Assert.Equal("XAU", Currency.XAU.LetterCode); + Assert.Equal("XAU", Currency.XAU.AlphabeticCode); Assert.Equal("959", Currency.XAU.NumericCode); Assert.Equal("Gold", Currency.XAU.Name); Assert.Equal(0, Currency.XAU.MinorUnits); @@ -1447,7 +1447,7 @@ public void Test_Currency_XAU_Properties() [Fact] public void Test_Currency_XBA_Properties() { - Assert.Equal("XBA", Currency.XBA.LetterCode); + Assert.Equal("XBA", Currency.XBA.AlphabeticCode); Assert.Equal("955", Currency.XBA.NumericCode); Assert.Equal("Bond Markets Unit European Composite Unit (EURCO)", Currency.XBA.Name); Assert.Equal(0, Currency.XBA.MinorUnits); @@ -1456,7 +1456,7 @@ public void Test_Currency_XBA_Properties() [Fact] public void Test_Currency_XBB_Properties() { - Assert.Equal("XBB", Currency.XBB.LetterCode); + Assert.Equal("XBB", Currency.XBB.AlphabeticCode); Assert.Equal("956", Currency.XBB.NumericCode); Assert.Equal("Bond Markets Unit European Monetary Unit (E.M.U.-6)", Currency.XBB.Name); Assert.Equal(0, Currency.XBB.MinorUnits); @@ -1465,7 +1465,7 @@ public void Test_Currency_XBB_Properties() [Fact] public void Test_Currency_XBC_Properties() { - Assert.Equal("XBC", Currency.XBC.LetterCode); + Assert.Equal("XBC", Currency.XBC.AlphabeticCode); Assert.Equal("957", Currency.XBC.NumericCode); Assert.Equal("Bond Markets Unit European Unit of Account 9 (E.U.A.-9)", Currency.XBC.Name); Assert.Equal(0, Currency.XBC.MinorUnits); @@ -1474,7 +1474,7 @@ public void Test_Currency_XBC_Properties() [Fact] public void Test_Currency_XBD_Properties() { - Assert.Equal("XBD", Currency.XBD.LetterCode); + Assert.Equal("XBD", Currency.XBD.AlphabeticCode); Assert.Equal("958", Currency.XBD.NumericCode); Assert.Equal("Bond Markets Unit European Unit of Account 17 (E.U.A.-17)", Currency.XBD.Name); Assert.Equal(0, Currency.XBD.MinorUnits); @@ -1483,7 +1483,7 @@ public void Test_Currency_XBD_Properties() [Fact] public void Test_Currency_XCD_Properties() { - Assert.Equal("XCD", Currency.XCD.LetterCode); + Assert.Equal("XCD", Currency.XCD.AlphabeticCode); Assert.Equal("951", Currency.XCD.NumericCode); Assert.Equal("East Caribbean Dollar", Currency.XCD.Name); Assert.Equal(2, Currency.XCD.MinorUnits); @@ -1492,7 +1492,7 @@ public void Test_Currency_XCD_Properties() [Fact] public void Test_Currency_XDR_Properties() { - Assert.Equal("XDR", Currency.XDR.LetterCode); + Assert.Equal("XDR", Currency.XDR.AlphabeticCode); Assert.Equal("960", Currency.XDR.NumericCode); Assert.Equal("SDR (Special Drawing Right)", Currency.XDR.Name); Assert.Equal(0, Currency.XDR.MinorUnits); @@ -1501,7 +1501,7 @@ public void Test_Currency_XDR_Properties() [Fact] public void Test_Currency_XOF_Properties() { - Assert.Equal("XOF", Currency.XOF.LetterCode); + Assert.Equal("XOF", Currency.XOF.AlphabeticCode); Assert.Equal("952", Currency.XOF.NumericCode); Assert.Equal("CFA Franc BCEAO", Currency.XOF.Name); Assert.Equal(0, Currency.XOF.MinorUnits); @@ -1510,7 +1510,7 @@ public void Test_Currency_XOF_Properties() [Fact] public void Test_Currency_XPD_Properties() { - Assert.Equal("XPD", Currency.XPD.LetterCode); + Assert.Equal("XPD", Currency.XPD.AlphabeticCode); Assert.Equal("964", Currency.XPD.NumericCode); Assert.Equal("Palladium", Currency.XPD.Name); Assert.Equal(0, Currency.XPD.MinorUnits); @@ -1519,7 +1519,7 @@ public void Test_Currency_XPD_Properties() [Fact] public void Test_Currency_XPF_Properties() { - Assert.Equal("XPF", Currency.XPF.LetterCode); + Assert.Equal("XPF", Currency.XPF.AlphabeticCode); Assert.Equal("953", Currency.XPF.NumericCode); Assert.Equal("CFP Franc", Currency.XPF.Name); Assert.Equal(0, Currency.XPF.MinorUnits); @@ -1528,7 +1528,7 @@ public void Test_Currency_XPF_Properties() [Fact] public void Test_Currency_XPT_Properties() { - Assert.Equal("XPT", Currency.XPT.LetterCode); + Assert.Equal("XPT", Currency.XPT.AlphabeticCode); Assert.Equal("962", Currency.XPT.NumericCode); Assert.Equal("Platinum", Currency.XPT.Name); Assert.Equal(0, Currency.XPT.MinorUnits); @@ -1537,7 +1537,7 @@ public void Test_Currency_XPT_Properties() [Fact] public void Test_Currency_XSU_Properties() { - Assert.Equal("XSU", Currency.XSU.LetterCode); + Assert.Equal("XSU", Currency.XSU.AlphabeticCode); Assert.Equal("994", Currency.XSU.NumericCode); Assert.Equal("Sucre", Currency.XSU.Name); Assert.Equal(0, Currency.XSU.MinorUnits); @@ -1546,7 +1546,7 @@ public void Test_Currency_XSU_Properties() [Fact] public void Test_Currency_XTS_Properties() { - Assert.Equal("XTS", Currency.XTS.LetterCode); + Assert.Equal("XTS", Currency.XTS.AlphabeticCode); Assert.Equal("963", Currency.XTS.NumericCode); Assert.Equal("Codes specifically reserved for testing purposes", Currency.XTS.Name); Assert.Equal(0, Currency.XTS.MinorUnits); @@ -1555,7 +1555,7 @@ public void Test_Currency_XTS_Properties() [Fact] public void Test_Currency_XUA_Properties() { - Assert.Equal("XUA", Currency.XUA.LetterCode); + Assert.Equal("XUA", Currency.XUA.AlphabeticCode); Assert.Equal("965", Currency.XUA.NumericCode); Assert.Equal("ADB Unit of Account", Currency.XUA.Name); Assert.Equal(0, Currency.XUA.MinorUnits); @@ -1564,7 +1564,7 @@ public void Test_Currency_XUA_Properties() [Fact] public void Test_Currency_XXX_Properties() { - Assert.Equal("XXX", Currency.XXX.LetterCode); + Assert.Equal("XXX", Currency.XXX.AlphabeticCode); Assert.Equal("999", Currency.XXX.NumericCode); Assert.Equal("The codes assigned for transactions where no currency is involved", Currency.XXX.Name); Assert.Equal(0, Currency.XXX.MinorUnits); @@ -1573,7 +1573,7 @@ public void Test_Currency_XXX_Properties() [Fact] public void Test_Currency_YER_Properties() { - Assert.Equal("YER", Currency.YER.LetterCode); + Assert.Equal("YER", Currency.YER.AlphabeticCode); Assert.Equal("886", Currency.YER.NumericCode); Assert.Equal("Yemeni Rial", Currency.YER.Name); Assert.Equal(2, Currency.YER.MinorUnits); @@ -1582,7 +1582,7 @@ public void Test_Currency_YER_Properties() [Fact] public void Test_Currency_ZAR_Properties() { - Assert.Equal("ZAR", Currency.ZAR.LetterCode); + Assert.Equal("ZAR", Currency.ZAR.AlphabeticCode); Assert.Equal("710", Currency.ZAR.NumericCode); Assert.Equal("Rand", Currency.ZAR.Name); Assert.Equal(2, Currency.ZAR.MinorUnits); @@ -1591,7 +1591,7 @@ public void Test_Currency_ZAR_Properties() [Fact] public void Test_Currency_ZMW_Properties() { - Assert.Equal("ZMW", Currency.ZMW.LetterCode); + Assert.Equal("ZMW", Currency.ZMW.AlphabeticCode); Assert.Equal("967", Currency.ZMW.NumericCode); Assert.Equal("Zambian Kwacha", Currency.ZMW.Name); Assert.Equal(2, Currency.ZMW.MinorUnits); @@ -1600,7 +1600,7 @@ public void Test_Currency_ZMW_Properties() [Fact] public void Test_Currency_ZWL_Properties() { - Assert.Equal("ZWL", Currency.ZWL.LetterCode); + Assert.Equal("ZWL", Currency.ZWL.AlphabeticCode); Assert.Equal("932", Currency.ZWL.NumericCode); Assert.Equal("Zimbabwe Dollar", Currency.ZWL.Name); Assert.Equal(2, Currency.ZWL.MinorUnits); diff --git a/test/TeixeiraSoftware/Finance/CurrencyTest.cs b/test/TeixeiraSoftware/Finance/CurrencyTest.cs index fca6299..ba49841 100644 --- a/test/TeixeiraSoftware/Finance/CurrencyTest.cs +++ b/test/TeixeiraSoftware/Finance/CurrencyTest.cs @@ -7,16 +7,16 @@ namespace TeixeiraSoftware.Finance public class CurrencyTest { [Fact] - public void Currency_Is_A_Value_Type_And_All_Factory_Methods_Return_New_Instances() + public void All_Factory_Methods_Return_New_Currency_Instances() { Assert.False(Object.ReferenceEquals(Currency.XXX, Currency.XXX)); Assert.False(Object.ReferenceEquals( - Currency.GetByLetterCode("XXX"), - Currency.GetByLetterCode("XXX") + Currency.ByAlphabeticCode("XXX"), + Currency.ByAlphabeticCode("XXX") )); Assert.False(Object.ReferenceEquals( - Currency.GetByNumericCode("999"), - Currency.GetByNumericCode("999") + Currency.ByNumericCode("999"), + Currency.ByNumericCode("999") )); } @@ -24,15 +24,15 @@ public void Currency_Is_A_Value_Type_And_All_Factory_Methods_Return_New_Instance public void Currency_Instances_Can_Be_Created_By_Three_Ways() { Assert.IsType(typeof(Currency), Currency.XXX); - Assert.IsType(typeof(Currency), Currency.GetByLetterCode("XXX")); - Assert.IsType(typeof(Currency), Currency.GetByNumericCode("999")); + Assert.IsType(typeof(Currency), Currency.ByAlphabeticCode("XXX")); + Assert.IsType(typeof(Currency), Currency.ByNumericCode("999")); } [Fact] public void Currency_Getter_Methods_Throw_Exception_For_Nonexistent_Currencies() { - Assert.Throws(() => Currency.GetByLetterCode("Nonexistent")); - Assert.Throws(() => Currency.GetByNumericCode("Nonexistent")); + Assert.Throws(() => Currency.ByAlphabeticCode("Nonexistent")); + Assert.Throws(() => Currency.ByNumericCode("Nonexistent")); } [Fact] @@ -67,7 +67,7 @@ public void Currency_Instances_Are_Compared_Through_Their_Whole_Set_Of_Propertie [Fact] public void There_Is_A_Publicly_Visible_Readonly_List_Of_All_Currencies() { - Assert.IsType(typeof(List), Currency.AllCurrencies); + Assert.IsType(typeof(List), Currency.AllCurrencies); Assert.Equal(178, Currency.AllCurrencies.Count); } }