コード例 #1
0
        public void ManyMultiplier()
        {
            var random = new Random();
            var i = random.Next();
            var j = random.Next();

            var route = new DirectRoute();
            var value = route.Get<int>("Many/Multiplier", i, j);

            Assert.AreEqual(i * j, value);
        }
コード例 #2
0
        public void TestNonRoundTrip()
        {
            var random = new Random();
            var expected = random.Next();

            var route = new DirectRoute();
            route.Send("TestNon/Set", expected);

            var value = route.Get<int>("TestNon/Red");

            Assert.AreEqual(expected, value);
        }