Exemplo n.º 1
0
        public void HitsCollection_WhenAddedTwiceMaxIntValue_TotalCountIsUpdatedCorrectly()
        {
            var hitsCollection = new HitsCollection();

            hitsCollection.AddToTotal(int.MaxValue);
            hitsCollection.AddToTotal(int.MaxValue);

            Assert.That(hitsCollection.Total > int.MaxValue);
        }
Exemplo n.º 2
0
        public void HitsCollection_WhenAddToTotal_TotalCountIsUpdated()
        {
            var hitsCollection = new HitsCollection();

            hitsCollection.AddToTotal(17);

            Assert.AreEqual(17, hitsCollection.Total);
        }