public void DecimalInputReturnsValidIEnumerableWithTwoValues() { var result = FlagEnumDecimal.FromValue(3M).ToList(); Assert.Equal("One", result[0].Name); Assert.Equal("Two", result[1].Name); }
public void OrBitwiseOnNonIntTypeWorks() { var result = FlagEnumDecimal.FromValue((int)FlagEnumDecimal.One | (int)FlagEnumDecimal.Two).ToList(); Assert.Equal("One", result[0].Name); Assert.Equal("Two", result[1].Name); }