Ejemplo n.º 1
0
        public void Should_return_two_likes_when_two_likes_added()
        {
            ProductAnalysis liker = new ProductAnalysis();

            liker.LikeProduct();
            liker.LikeProduct();
            int numberLikes = liker.GetNumberLikes();

            Assert.AreEqual(2, numberLikes);
        }
Ejemplo n.º 2
0
        public void Should_return_two_likes_when_two_likes_added()
        {
            ProductAnalysis liker = new ProductAnalysis();

            liker.LikeProduct();
            liker.LikeProduct();
            int numberLikes = liker.GetNumberLikes();

            Check.That(numberLikes).IsEqualTo(2);
        }
Ejemplo n.º 3
0
        public void Should_return_two_likes_when_two_likes_added()
        {
            ProductAnalysis liker   = new ProductAnalysis();
            LikesCounter    counter = new LikesCounter(liker);
            IProduct        ram     = new Ram(25, "Corsair");

            liker.LikeProduct(ram);
            liker.LikeProduct(ram);

            Assert.AreEqual(2, ram.likeNumber);
        }
Ejemplo n.º 4
0
        public void Should_return_likes_number_when_calling_product_liker()
        {
            ProductAnalysis liker = new ProductAnalysis();

            liker.Add(new LikesCounter(liker));
            liker.LikeProduct();
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
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);
        }