Пример #1
0
        public void ServiceContract_create_defaultsAreEqual()
        {
            NDceRpc.ServiceModel.ServiceContractAttribute my  = new NDceRpc.ServiceModel.ServiceContractAttribute();
            System.ServiceModel.ServiceContractAttribute  wcf = new System.ServiceModel.ServiceContractAttribute();

            Assert.AreEqual(my.CallbackContract, wcf.CallbackContract);
            Assert.AreEqual(my.ConfigurationName, wcf.ConfigurationName);
            Assert.AreEqual(my.HasProtectionLevel, wcf.HasProtectionLevel);
            Assert.AreEqual(my.Name, wcf.Name);
            Assert.AreEqual(my.Namespace, wcf.Namespace);
            Assert.AreEqual(my.ProtectionLevel, wcf.ProtectionLevel);
            Assert.AreEqual((int)my.SessionMode, (int)wcf.SessionMode);
            Assert.AreEqual(my.IsDefaultAttribute(), wcf.IsDefaultAttribute());
        }
Пример #2
0
        public void ServiceContract_create_defaultsAreEqual()
        {
            NDceRpc.ServiceModel.ServiceContractAttribute my = new NDceRpc.ServiceModel.ServiceContractAttribute();
            System.ServiceModel.ServiceContractAttribute wcf = new System.ServiceModel.ServiceContractAttribute();

            Assert.AreEqual(my.CallbackContract,wcf.CallbackContract);
            Assert.AreEqual(my.ConfigurationName, wcf.ConfigurationName);
            Assert.AreEqual(my.HasProtectionLevel, wcf.HasProtectionLevel);
            Assert.AreEqual(my.Name, wcf.Name);
            Assert.AreEqual(my.Namespace, wcf.Namespace);
            Assert.AreEqual(my.ProtectionLevel, wcf.ProtectionLevel);
            Assert.AreEqual((int)my.SessionMode, (int)wcf.SessionMode);
            Assert.AreEqual(my.IsDefaultAttribute(), wcf.IsDefaultAttribute());
        }