public void Pop()
        {
            var sut = new PopCausality("pc");
            Assert.AreEqual("pc", sut.Name);

            var msg = new Message("x", "hello");
            msg.Causalities.Push(new Port("handler"));

            CausalityStack result = null;
            sut.Implementation(msg, _ => result = _.Causalities, null);

            Assert.IsTrue(result.IsEmpty);
        }
Beispiel #2
0
        public void Pop()
        {
            var sut = new PopCausality("pc");

            Assert.AreEqual("pc", sut.Name);

            var msg = new Message("x", "hello");

            msg.Causalities.Push(new Port("handler"));

            CausalityStack result = null;

            sut.Implementation(msg, _ => result = _.Causalities, null);

            Assert.IsTrue(result.IsEmpty);
        }