Пример #1
0
 public void GlobalRequestMessageConstructorTest1()
 {
     GlobalRequestName requestName = new GlobalRequestName(); // TODO: Initialize to an appropriate value
     bool wantReply = false; // TODO: Initialize to an appropriate value
     GlobalRequestMessage target = new GlobalRequestMessage(requestName, wantReply);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Пример #2
0
 public void GlobalRequestMessageConstructorTest2()
 {
     GlobalRequestName requestName = new GlobalRequestName(); // TODO: Initialize to an appropriate value
     bool wantReply = false; // TODO: Initialize to an appropriate value
     string addressToBind = string.Empty; // TODO: Initialize to an appropriate value
     uint portToBind = 0; // TODO: Initialize to an appropriate value
     GlobalRequestMessage target = new GlobalRequestMessage(requestName, wantReply, addressToBind, portToBind);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Пример #3
0
        public void Ctor_RequestNameAndWantReply()
        {
            var requestName = new Random().Next().ToString(CultureInfo.InvariantCulture);

            var target = new GlobalRequestMessage(Encoding.ASCII.GetBytes(requestName), true);
            Assert.AreEqual(requestName, target.RequestName);
            Assert.IsTrue(target.WantReply);

            target = new GlobalRequestMessage(Encoding.ASCII.GetBytes(requestName), false);
            Assert.AreEqual(requestName, target.RequestName);
            Assert.IsFalse(target.WantReply);
        }
        protected override void SetupData()
        {
            base.SetupData();

            _globalRequestMessage = new GlobalRequestMessage(Encoding.ASCII.GetBytes("ping-mocana-com"), false);
        }
Пример #5
0
 public void GlobalRequestMessageConstructorTest()
 {
     GlobalRequestMessage target = new GlobalRequestMessage();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }