コード例 #1
0
        public async Task TestGameCollectionsByNullParam_OK()
        {
            try
            {
                var result = await _gamesController.GetGameCollections(null);

                Assert.IsNotNull(result);
                Assert.IsInstanceOfType(((ObjectResult)result).Value, typeof(GameCollectionDTOOut));
                GameCollectionDTOOut gameCollectionDTOOut = (GameCollectionDTOOut)((ObjectResult)result).Value;
                Assert.IsFalse(gameCollectionDTOOut.Gamecollections.Count == 0);
            }
            catch (Exception ex)
            {
                Assert.Fail();
            }
        }