public void test3_GetMaxCapacity() { //Arrange EnergyStorage e = new EnergyStorage(); bool expectedResult = false; //Act bool result = e.GetMaxCapacityReached(); //Assert Assert.AreEqual(result, expectedResult); }
public void test4_SetMaxCapacity() { //Arrange EnergyStorage e = new EnergyStorage(); bool cap = true; bool expectedResult = true; //Act e.SetMaxCapacityReached(cap); bool result = e.GetMaxCapacityReached(); //Assert Assert.AreEqual(result, expectedResult); }