Esempio n. 1
0
        public void Simple_Remove_With_Integers_No_Match()
        {
            var temp = new ListRepository<int>(new List<int> { 1, 2, 3, 4, 5 });
            var count = temp.Count();

            temp.Remove(9);

            Assert.AreEqual(count, temp.Count());
        }
Esempio n. 2
0
        public void Simple_Remove_With_Integers_No_Match()
        {
            var temp = new ListRepository <int>(new List <int> {
                1, 2, 3, 4, 5
            });
            var count = temp.Count();

            temp.Remove(9);

            Assert.AreEqual(count, temp.Count());
        }
        public async Task Get_My_Lists_Returns_Ok()
        {
            //Arrange

            //Act
            int listsCount    = _listRepository.Count();
            var iactionResult = await _listsController.Get(_uniqueToken);

            var objectResponse = iactionResult as ObjectResult;
            var resultObject   = objectResponse.Value as List <Backend.Models.Database.TodoList>;

            //Assert
            Assert.Equal(resultObject.Count, listsCount);
            Assert.IsType <OkObjectResult>(iactionResult);
            Assert.Equal(200, objectResponse.StatusCode);
        }