Example #1
0
        public void TheAllowedValuesForAnEnumTypeAreAllNames()
        {
            var allowed = AppMetadataReader.TryGetAllowedValues(typeof(Test));

            Assert.Equal(3, allowed.Length);
Example #2
0
        public void TheAllowedValuesForANonEnumTypeAreUndefined()
        {
            var allowed = AppMetadataReader.TryGetAllowedValues(typeof(string));

            Assert.Null(allowed);
        }