示例#1
0
        public void ActivationExpressionRequest_Keys(ActivationExpressionRequest request)
        {
            request.SetExtraData("Hello", 5);

            var keys = request.Keys.ToArray();

            Assert.Equal(1, keys.Length);
            Assert.Equal("Hello", keys[0]);
        }
示例#2
0
        public void ActivationExpressionRequest_Value(ActivationExpressionRequest request)
        {
            request.SetExtraData("Hello", 5);

            var values = request.Values.ToArray();

            Assert.Equal(1, values.Length);
            Assert.Equal(5, values[0]);
        }
示例#3
0
        public void ActivationExpressionRequest_KVP(ActivationExpressionRequest request)
        {
            request.SetExtraData("Hello", 5);

            var values = request.KeyValuePairs.ToArray();

            Assert.Equal(1, values.Length);
            Assert.Equal("Hello", values[0].Key);
            Assert.Equal(5, values[0].Value);
        }
示例#4
0
        public void ActivationExpressionRequest_GetSetData(ActivationExpressionRequest request)
        {
            request.SetExtraData("Hello", 5);

            Assert.Equal(5, request.GetExtraData("Hello"));
        }