public void Can_create_and_retrieve_ColumnName_and_Value() { var mappingCondition = new FunctionImportEntityTypeMappingConditionValue("C", 4); Assert.Equal("C", mappingCondition.ColumnName); Assert.Equal(4, mappingCondition.Value); }
public void Can_create_and_retrieve_ColumnName_and_Value() { var mappingCondition = new FunctionImportEntityTypeMappingConditionValue("C", 4); Assert.Equal("C", mappingCondition.ColumnName); Assert.Equal(4, mappingCondition.Value); }
public void GetConditionValue_returns_value_if_type_matches() { var mappingCondition = new FunctionImportEntityTypeMappingConditionValue("C", 4); var actionId = 0; var value = mappingCondition.GetConditionValue( typeof(int), handleTypeNotComparable: () => { actionId = 1; }, handleInvalidConditionValue: () => { actionId = 2; }); Assert.Equal(4, value); Assert.Equal(0, actionId); }
public void GetConditionValue_returns_null_if_type_does_not_match() { var mappingCondition = new FunctionImportEntityTypeMappingConditionValue("C", 4); var actionId = 0; var value = mappingCondition.GetConditionValue( typeof(string), handleTypeNotComparable: () => { actionId = 1; }, handleInvalidConditionValue: () => { actionId = 2; }); Assert.Equal(null, value); Assert.Equal(2, actionId); }
public void GetConditionValue_returns_value_if_type_matches() { var mappingCondition = new FunctionImportEntityTypeMappingConditionValue("C", 4); var actionId = 0; var value = mappingCondition.GetConditionValue( typeof(int), handleTypeNotComparable: () => { actionId = 1; }, handleInvalidConditionValue: () => { actionId = 2; }); Assert.Equal(4, value); Assert.Equal(0, actionId); }
public void GetConditionValue_returns_null_if_type_does_not_match() { var mappingCondition = new FunctionImportEntityTypeMappingConditionValue("C", 4); var actionId = 0; var value = mappingCondition.GetConditionValue( typeof(string), handleTypeNotComparable: () => { actionId = 1; }, handleInvalidConditionValue: () => { actionId = 2; }); Assert.Equal(null, value); Assert.Equal(2, actionId); }