Пример #1
0
        public void Should_return_likes_number_when_calling_product_liker()
        {
            ProductAnalysis liker = new ProductAnalysis();

            liker.LikeProduct();
            LikesCounter counter    = new LikesCounter(liker);
            int          likeNumber = counter.CountLikes();

            Assert.AreEqual(1, likeNumber);
        }
Пример #2
0
        public void Should_return_likes_number_when_calling_product_liker()
        {
            ProductAnalysis liker = new ProductAnalysis();

            liker.LikeProduct();
            LikesCounter counter    = new LikesCounter(liker);
            int          likeNumber = counter.CountLikes();

            Check.That(likeNumber).IsEqualTo(1);
        }