public void Test_ToString() { EnumWrapper wrapper = EnumWrapper.Get(TestAccessTypes.First); AccessType accessType = AccessType.Get(wrapper); Assert.That(accessType.ToString(), Is.EqualTo(wrapper.ToString())); }
private LocalizedName CreateLocalizedNameFromEnumValueInfo(EnumValueInfo enumValueInfo, string text) { EnumWrapper enumWrapper = EnumWrapper.Get(enumValueInfo.Name, enumValueInfo.TypeName); return(new LocalizedName(enumValueInfo.ID, enumWrapper.ToString(), enumValueInfo.Name)); }
public void ConvertToString_WithTypeName() { EnumWrapper wrapper = EnumWrapper.Get("Name", "Namespace.TypeName, Assembly"); Assert.That(wrapper.ToString(), Is.EqualTo("Name|Namespace.TypeName, Assembly")); }
public void ConvertToString_SimpleName() { EnumWrapper one = EnumWrapper.Get("123"); Assert.That(one.ToString(), Is.EqualTo(one.Name)); }