Пример #1
0
 public void AboutTest()
 {
     ILedgerEntries budgetEntries = null; // TODO: Initialize to an appropriate value
     HomeController target = new HomeController(budgetEntries); // TODO: Initialize to an appropriate value
     ActionResult expected = null; // TODO: Initialize to an appropriate value
     ActionResult actual;
     actual = target.About();
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
Пример #2
0
 public void HomeControllerConstructorTest()
 {
     ILedgerEntries budgetEntries = null; // TODO: Initialize to an appropriate value
     HomeController target = new HomeController(budgetEntries);
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
Пример #3
0
        public void List_Entries_Test()
        {
            // Arrange
            Mock<ILedgerEntries> MockEntries = SetMockEntries();

            // Act
            HomeController Controller = new HomeController(MockEntries.Object);
            ViewResult Result = Controller.List();
            IEnumerable<LedgerEntry> model = (IEnumerable<LedgerEntry>)Result.Model;

            // Assert
            Assert.AreEqual("First entry", model.ElementAt(0).Description);
            Assert.AreEqual("Second entry", model.ElementAt(1).Description);
            Assert.AreEqual("Third entry", model.ElementAt(2).Description);
        }
Пример #4
0
 public void EditTest1()
 {
     ILedgerEntries budgetEntries = null; // TODO: Initialize to an appropriate value
     HomeController target = new HomeController(budgetEntries); // TODO: Initialize to an appropriate value
     int entryID = 0; // TODO: Initialize to an appropriate value
     ViewResult expected = null; // TODO: Initialize to an appropriate value
     ViewResult actual;
     actual = target.Edit(entryID);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }