示例#1
0
文件: PlayWithIt.cs 项目: Kidify/L4p
        public void When_merging_two_application_It_should_throw()
        {
            var msg = new OneMsg();
            var second = new SecondMsg();
            msg.MsgIsTheApp().Add(second);

            var msg2 = new OneMsg();
            var other = new OtherMsg();
            msg2.MsgIsTheApp().Add(other);

            AssertIt.Fails(() => msg.MsgIsTheApp().Add(other));
        }
示例#2
0
 public void Handle(OtherMsg @event)
 {
     Interlocked.Increment(ref _otherMsg);
 }