コード例 #1
0
        public void TxId20Test()
        {
            var transformer           = new HeaderTransformerTestObject(PvpTokenHandling.chain, "2.0");
            WebHeaderCollection coll1 = new WebHeaderCollection()
            {
                { "X-PVP-TXID", "asdf" }
            };
            WebHeaderCollection rightsideHeaders = transformer.TransformRequestHeaders(coll1);

            Assert.AreEqual(1, rightsideHeaders.Count);
            Assert.AreEqual("asdf", rightsideHeaders["X-PVP-TXID"]);
        }
コード例 #2
0
        public void RemoveHeaderTest()
        {
            var transformer           = new HeaderTransformerTestObject(true, "2.1");
            WebHeaderCollection coll1 = new WebHeaderCollection()
            {
                { "VsDebuggerCausalityData", "SomeValue" }
                , { "SomeNormalHeader", "aValue" }
            };
            WebHeaderCollection rightsideHeaders = transformer.TransformRequestHeaders(coll1);

            Assert.AreEqual(1, rightsideHeaders.Count);
            Assert.AreEqual("aValue", rightsideHeaders["SomeNormalHeader"]);
        }