public void TestGiopConnectionDescSetCodeSet() { int charSet = 0x5010001; int wcharSet = 0x10100; GiopConnectionDesc desc = new GiopConnectionDesc(null, null); desc.SetNegotiatedCodeSets(charSet, wcharSet); Assert.IsTrue( desc.IsCodeSetNegotiated(),"Codeset negotiated"); Assert.AreEqual(charSet, desc.CharSet,"char set"); Assert.AreEqual(wcharSet, desc.WCharSet,"wchar set"); Assert.IsTrue(desc.IsCodeSetDefined(),"Codeset user defined"); }
public void TestGiopConnectionDescSetCodeSetNegotiated() { GiopConnectionDesc desc = new GiopConnectionDesc(null, null); desc.SetCodeSetNegotiated(); Assert.IsTrue( desc.IsCodeSetNegotiated(),"Codeset negotiated"); Assert.IsTrue( !desc.IsCodeSetDefined(),"Codeset not user defined"); }
public void TestGiopConnectionDescCodeSetNotSet() { GiopConnectionDesc desc = new GiopConnectionDesc(null, null); Assert.IsTrue( !desc.IsCodeSetNegotiated(), "Codeset not negotiated at construction time"); Assert.IsTrue( !desc.IsCodeSetDefined(), "No codeset user defined at construction time"); }