public void ContentTypeController_GetContentTypes_Returns_Empty_List_Of_ContentTypes_If_No_ContentTypes() { //Arrange var mockDataService = new Mock <IDataService>(); mockDataService.Setup(ds => ds.GetContentTypes()).Returns(MockHelper.CreateEmptyContentTypeReader()); var contentTypeController = new ContentTypeController(mockDataService.Object); //Act var contentTypes = contentTypeController.GetContentTypes(); //Assert Assert.IsNotNull(contentTypes); Assert.AreEqual(0, contentTypes.Count()); }