CapRaffle.UnitTests.CategoryControllerTests.Can_Not_Save_Category_With_Empty_Name C# (CSharp) Method

Can_Not_Save_Category_With_Empty_Name() private method

private Can_Not_Save_Category_With_Empty_Name ( ) : void
return void
        public void Can_Not_Save_Category_With_Empty_Name()
        {
            var category = new Category { Name = null };

            var result = controller.Edit(category);

            mock.Verify(m => m.SaveCategory(It.IsAny<Category>()), Times.Never());
            result.AssertViewRendered().ForView(string.Empty);
        }