public void GetClrTypeForUntypedDelta_ThrowsInvalidOperation_ForUnsupportedTypeKind() { // Arrange & Act IEdmPathTypeReference path = EdmCoreModel.Instance.GetPathType(EdmPathTypeKind.PropertyPath, true); Action test = () => EdmStructuredObject.GetClrTypeForUntypedDelta(path); // Assert ExceptionAssert.Throws <InvalidOperationException>( () => EdmStructuredObject.GetClrTypeForUntypedDelta(path), "The EDM type '[Edm.PropertyPath Nullable=True]' of kind 'Path' is not supported."); }
public void GetClrTypeForUntypedDelta(IEdmTypeReference edmType, Type expectedType) { // Arrange & Act & Assert Assert.Equal(expectedType, EdmStructuredObject.GetClrTypeForUntypedDelta(edmType)); }