Commit f328195
authored
Flags enums (#46)
* Start of flags enum support
* Mapping numeric values to enums with IsDefined and a cast, instead of TryParse with the string value
* Reusing Enum.IsDefined call creation method
* Support for mapping numeric values to multi-value flags enums
* Extending numeric to flags enum test coverage
* Support for mapping a numeric string value to a flags enum
* Expanding string -> flags enum test coverage
* Test coverage for object strings and flags enums -> flags enums1 parent 818d50c commit f328195
File tree
1 file changed
+27
-0
lines changed- AgileMapper.UnitTests/SimpleTypeConversion
1 file changed
+27
-0
lines changedLines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
83 | 110 | | |
84 | 111 | | |
0 commit comments