Example #1
0
        public void TestCreateUnaryOp02()
        {
            UnaryOp unaryOp = CreateUnaryOp02();

            unaryOp.ToString();
            Assert.IsNotNull(unaryOp);
            #region Record State
            ValueRecorder recorder = new ValueRecorder();
            recorder.Record((OperatorPriority)unaryOp.Priority);
            recorder.FinishRecording();
            #endregion
        }
        public virtual bool IsOpSupportedByTable(OperationCapabilityMetadata metadata, TexlNode node, TexlBinding binding)
        {
            Contracts.AssertValue(metadata);
            Contracts.AssertValue(node);
            Contracts.AssertValue(binding);

            if (!metadata.IsUnaryOpInDelegationSupported(_unaryOp))
            {
                SuggestDelegationHint(node, binding, TexlStrings.OpNotSupportedByClientSuggestionMessage_OpNotSupportedByClient, _unaryOp.ToString());
                return(false);
            }

            if (!metadata.IsUnaryOpSupportedByTable(_unaryOp))
            {
                SuggestDelegationHint(node, binding, TexlStrings.OpNotSupportedByServiceSuggestionMessage_OpNotSupportedByService, _unaryOp.ToString());
                return(false);
            }

            return(true);
        }
Example #3
0
 public static DelegationTelemetryInfo CreateUnaryOpNoSupportedInfoTelemetryInfo(UnaryOp op)
 {
     return(new DelegationTelemetryInfo(op.ToString()));
 }