Exemple #1
0
        public async Task Add_should_add_number_to_end_of_category_name_if_already_exists()
        {
            // Given
            var existing = _testFactory.AddNewWordCategory(SUT.ProgramId, "Category name");
            var toAdd    = _testFactory.NewWordCategory(new Planned(), "Category name");

            // When
            var result = await SUT.Add(toAdd);

            // Then
            Assert.AreEqual("Category name 2", result.Title);
        }