Exemplo n.º 1
0
        public void test3_GetMaxCapacity()
        {
            //Arrange
            EnergyStorage e = new EnergyStorage();
            bool          expectedResult = false;

            //Act
            bool result = e.GetMaxCapacityReached();

            //Assert
            Assert.AreEqual(result, expectedResult);
        }
Exemplo n.º 2
0
        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);
        }