Esempio n. 1
0
        public async Task TAddTemp()
        {
            await SetHP(CharHP / 2, CharTempHP);

            IActionResult response = await _controller.AddTemp(1, CharTempHP + 2);

            var hp = await CheckResponse(response,
                                         CharHP / 2,
                                         "unmodified",
                                         CharTempHP + 2,
                                         "increased"
                                         );

            Assert.IsNotNull(hp.Previous,
                             "there should be previous values");
            CheckSnapshot(hp.Previous !,
                          CharHP / 2,
                          "unmodified",
                          CharTempHP,
                          "unmodified"
                          );
        }