예제 #1
0
        public void CubSq_GetSurfaceArea_SurfaceAreaOfCube()
        {
            // Arrange
            Square newSquare = new Square(4, 4);
            CubeSq newCubeSq = new CubeSq(newSquare);
            // Act
            int result = newCubeSq.GetSurfaceArea();

            // Assert
            Assert.AreEqual(result, 96);
        }
예제 #2
0
        public void CubeSq_GetVolume_VolumeOfCube()
        {
            // Arrange
            Square newSquare = new Square(4, 4);
            CubeSq newCubeSq = new CubeSq(newSquare);
            // Act
            int result = newCubeSq.GetVolume();

            // Assert
            Assert.AreEqual(result, 64);
        }