Exemple #1
0
        public void GetCategoryFaker_AmountLessThanMaxCategoryAmount_ShouldKeepItsAmount()
        {
            var categories = CategoryFaker.GetCategoryList(3);

            _output.WriteLine(JsonConvert.SerializeObject(categories, Formatting.Indented));

            Assert.Equal(3, categories.Count);
        }
Exemple #2
0
        public void GetCategoryFaker_AmountBeyondMaxCategory_ShouldBeFallBackToMaxCategoryAmount()
        {
            var categories = CategoryFaker.GetCategoryList(12);

            _output.WriteLine(JsonConvert.SerializeObject(categories, Formatting.Indented));

            Assert.Equal(10, categories.Count);
        }