Esempio n. 1
0
 public void AreaReporterTest()
 {
     GardenManager target = new GardenManager();
     Garden currentGarden = new Garden(10, 20, "Bob");
     string expected = "Bob           :  200.00";
     string actual;
     actual = target.AreaReporter(currentGarden);
     Assert.AreEqual(expected, actual);
 }
Esempio n. 2
0
 public void ChargesReporterTest()
 {
     GardenManager target = new GardenManager(); // TODO: Initialize to an appropriate value
     Garden currentGarden = new Garden(10, 20, "Bob");
     currentGarden.AddCharge(123.45);
     currentGarden.AddCharge(678.90);
     string expected = "Bob           :   $802.35";
     string actual;
     actual = target.ChargesReporter(currentGarden);
     Assert.AreEqual(expected, actual);
 }
Esempio n. 3
0
File: Form1.cs Progetto: rNdm74/C-
        private void Form1_Load(object sender, EventArgs e)
        {
            mainManager = new GardenManager();

            populateDummyData();
        }
Esempio n. 4
0
File: Form1.cs Progetto: rNdm74/C-
        private void Form1_Load(object sender, EventArgs e)
        {
            mainManager = new GardenManager();

            populateDummyData();
        }