コード例 #1
0
        public void WithValidCode_ThenDontCrash()
        {
            var code = @"
            public class Foo {}
            ";

            TotalTestsResult result = new TotalTestsResult();

            _messager.OfType <ResponseMessage>()
            .Subscribe(x =>
            {
                result = (TotalTestsResult)x.Data;
            });

            _messager.Publish(new RequestMessage("compileRequest", "senderId", new { Code = code }));

            result.Message.Should().Be("a");
        }