AllReady.UnitTest.ViewModels.Home.IndexViewModelShould.HasFeaturedCampaignShouldReturnTrueIfViewMModelHasAFeaturedCampaign C# (CSharp) 메소드

HasFeaturedCampaignShouldReturnTrueIfViewMModelHasAFeaturedCampaign() 개인적인 메소드

        public void HasFeaturedCampaignShouldReturnTrueIfViewMModelHasAFeaturedCampaign()
        {
            var sut = new IndexViewModel
            {
                FeaturedCampaign = new CampaignSummaryViewModel { Id = 1, Title = "Something" }
            };

            Assert.True(sut.HasFeaturedCampaign);
        }
    }