예제 #1
0
        public async Task TryToOverflowDice()
        {
            Fabric.CreateFactoryImpl = CreateFactory;

            var input = new[]
            {
                new KeyValuePair <string, string>("user_name", "user"),
                new KeyValuePair <string, string>("text", "/dice 100000d1000000"),
            };
            var commandInput = new FormDataCollection(input);

            var diceController = new DiceController();
            var message        = await diceController.PostDice(commandInput);

            Assert.AreEqual("Кубик укатился...", message.Text);
        }