コード例 #1
0
        public void ProductBoxDataIsCorrectlySetWhenAHomePageModelIsCreated()
        {
            var homePageModel = new HomePageViewModel(new ProductBoxViewModel[] { });

            Assert.IsNotNull(homePageModel.ProductBox);
        }
コード例 #2
0
        public void ProductBoxCreationShouldFailWhenNoProductBoxDataIsPassedIn()
        {
            var homePageModel = new HomePageViewModel(null);

            Assert.Fail("Product box data cannot be null instance.");
        }