public void SimpleTypeLookup()
        {
            FudgeFieldType type = null;

            type = new FudgeTypeDictionary().GetByCSharpType(typeof(bool));
            Assert.NotNull(type);
            Assert.Equal(PrimitiveFieldTypes.BooleanType.TypeId, type.TypeId);

            type = new FudgeTypeDictionary().GetByCSharpType(typeof(Boolean));
            Assert.NotNull(type);
            Assert.Equal(PrimitiveFieldTypes.BooleanType.TypeId, type.TypeId);
        }
        public void SimpleTypeLookup()
        {
            FudgeFieldType type = null;

            type = new FudgeTypeDictionary().GetByCSharpType(typeof(bool));
            Assert.NotNull(type);
            Assert.Equal(PrimitiveFieldTypes.BooleanType.TypeId, type.TypeId);

            type = new FudgeTypeDictionary().GetByCSharpType(typeof(Boolean));
            Assert.NotNull(type);
            Assert.Equal(PrimitiveFieldTypes.BooleanType.TypeId, type.TypeId);
        }
Пример #3
0
 private static void AddSecondaryTypes(FudgeTypeDictionary typeDictionary)
 {
     typeDictionary.AddType(new SecondaryFieldType <Currency, string>(StringFieldType.Instance, Currency.Create, c => c.ISOCode));
 }