public void CountTestNotNull()
        {
            // Act
            int result = titleRepository.Count();

            // Assert
            Assert.IsTrue(result >= 0, "Unable to count properly");
        }
Exemplo n.º 2
0
        public void FindAllTest()
        {
            // Arrange
            var expected = titleRepository.Count();

            // Act
            var result = titleService.FindAllTitles().Count;

            // Assert
            Assert.AreEqual(expected, result);
        }