コード例 #1
0
        public void Should_return_one_like_when_only_one_like_added()
        {
            ProductAnalysis liker = new ProductAnalysis();

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

            Assert.AreEqual(1, numberLikes);
        }
コード例 #2
0
        public void Should_return_one_like_when_only_one_like_added()
        {
            ProductAnalysis liker = new ProductAnalysis();

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

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