public GetNativeTypeID ( |
||
pagePropertyType | ||
return | int |
public void GetNativeTypeId_ReturnsCorrectId(Type propertyType, int index) { NativePageDefinitionsMap map = new NativePageDefinitionsMap(); var typeId = map.GetNativeTypeID(propertyType); Assert.Equal<int>(index, typeId); }
public void GivenNonNativeType_GetNativeTypeID_ThrowsException() { var mapper = new NativePageDefinitionsMap(); Type nonNativeType = typeof(string); Exception exception = Record.Exception(() => { mapper.GetNativeTypeID(nonNativeType); }); Assert.NotNull(exception); }