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