public void CopyHeadersFrom_Merge() { var h1 = new MessageHeaders(MessageVersion.Default); var h2 = new MessageHeaders(MessageVersion.Default); h1.Add(MessageHeader.CreateHeader("Action", wsa1, "urn:foo")); h2.Add(MessageHeader.CreateHeader("Action", wsa1, "urn:bar")); h1.CopyHeadersFrom(h2); // it somehow allow dups! Assert.Fail(String.Format("Action should not be caught", h1.Action)); // access to Action results in an error. If it does not, then simply assert fail. }
public void CopyHeadersFrom_Merge () { var h1 = new MessageHeaders (MessageVersion.Default); var h2 = new MessageHeaders (MessageVersion.Default); h1.Add (MessageHeader.CreateHeader ("Action", wsa1, "urn:foo")); h2.Add (MessageHeader.CreateHeader ("Action", wsa1, "urn:bar")); h1.CopyHeadersFrom (h2); // it somehow allow dups! Assert.Fail (String.Format ("Action should not be caught", h1.Action)); // access to Action results in an error. If it does not, then simply assert fail. }