コード例 #1
0
 public void CsvStatusEtlConstructorTest()
 {
     CsvStatusEtl target = new CsvStatusEtl();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
コード例 #2
0
 public void ExportStatusTest()
 {
     CsvStatusEtl target = new CsvStatusEtl(); // TODO: Initialize to an appropriate value
     TextWriter file = null; // TODO: Initialize to an appropriate value
     IList<StatusReport> reports = null; // TODO: Initialize to an appropriate value
     target.ExportStatus(file, reports);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }
コード例 #3
0
        public void ImportStatusTest()
        {
            var target = new CsvStatusEtl();
            using (TextReader file = new StreamReader(@"..\..\..\..\StatusSample.csv"))
            {
                var actual = target.ImportStatus(file);

                // check values in first item
                Assert.AreEqual(new DateTime(2011, 11, 2), actual[0].MilestoneDate);
                Assert.AreEqual("Software Licensing", actual[0].Project);

                Assert.AreEqual(87, actual[actual.Count - 1].ProjectID);
                Assert.AreEqual(new DateTime(2011, 11, 28), actual[actual.Count - 1].StatusDate);
            }
        }