Skip to content

Instantly share code, notes, and snippets.

@johanosventer
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johanosventer/1882cd9dd1c68783e016 to your computer and use it in GitHub Desktop.
Save johanosventer/1882cd9dd1c68783e016 to your computer and use it in GitHub Desktop.
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,
}
}
[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