コード例 #1
0
        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.");
        }
コード例 #2
0
 public void GetClrTypeForUntypedDelta(IEdmTypeReference edmType, Type expectedType)
 {
     // Arrange & Act & Assert
     Assert.Equal(expectedType, EdmStructuredObject.GetClrTypeForUntypedDelta(edmType));
 }