-
-
Save johanosventer/1882cd9dd1c68783e016 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel; | |
namespace Bitwize.Enums | |
{ | |
public enum EntityType2 | |
{ | |
[Description("None")] | |
None = 0, | |
[DescriptionAttribute("LegalEntity")] | |
LegalEntity = 16, | |
[DescriptionAttribute("Natural")] | |
Natural = 32, | |
// Legal Entities | |
[DescriptionAttribute("Close Corporation")] | |
CloseCorp = 17, | |
[DescriptionAttribute("Non Government Organisation")] | |
NGO = 18, | |
[DescriptionAttribute("Body Corporate")] | |
BodyCorp = 19, | |
// Natural Party Types | |
[DescriptionAttribute("Individual")] | |
Individual = 33, | |
[DescriptionAttribute("Joint Account")] | |
JointAccount = 34, | |
[DescriptionAttribute("Deceased Estate")] | |
DeceasedEstate = 35, | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void Test_EnumInt_Values() | |
{ | |
//assert.. | |
Assert.AreEqual((int)EntityType.None, (int)EntityType2.None); | |
Assert.AreEqual((int)EntityType.Natural, (int)EntityType2.Natural); | |
Assert.AreEqual((int)EntityType.LegalEntity, (int)EntityType2.LegalEntity); | |
Assert.AreEqual((int)EntityType.Individual, (int)EntityType2.Individual); | |
Assert.AreEqual((int)EntityType.JointAccount, (int)EntityType2.JointAccount); | |
Assert.AreEqual((int)EntityType.DeceasedEstate, (int)EntityType2.DeceasedEstate); | |
Assert.AreEqual((int)EntityType.CloseCorp, (int)EntityType2.CloseCorp); | |
Assert.AreEqual((int)EntityType.NGO, (int)EntityType2.NGO); | |
Assert.AreEqual((int)EntityType.BodyCorp, (int)EntityType2.BodyCorp); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment