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."); }
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"); }
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); }
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."); }