Ejemplo n.º 1
0
        public void GetStoredRssIssuesTest()
        {
            // arrange
            HttpContextBase context = null; // TODO: Initialize to an appropriate value
            IssueMgr target = new IssueMgr(context); // TODO: Initialize to an appropriate value
            string pathToFiles = Setup.GetDataPath();

            if (!File.Exists(pathToFiles + "IssueFileDatasource"))
            {
                Setup.RunBeforeTests_IssueListFile();
            }

            RssIssues actual;

            // act
            actual = target.GetStoredRssIssues(pathToFiles);

            // assert
            Assert.IsNotNull(actual);
            Assert.IsNotNull(actual.Issues);

            // DFB:TBD - this is not a great test - need to figure out what
            // the lower level tests aren't going to catch and then make sure this one does
            // example: datetime diffs

            // cleanup
            File.Exists(pathToFiles + "IssueFileDatasource");
        }