public void ShapeBuilder_Should_Throw_Exception() { var height = 0; var shapeBuider = new ShapeBuilder(); Assert.Throws <ArgumentException>(() => shapeBuider.CreateCube(height)); }
public void ShapeBuilder_Should_Create_New_Cube() { var height = 5; var shapeBuider = new ShapeBuilder(); var result = shapeBuider.CreateCube(height); Assert.True(result != null); Assert.Equal(5, result.Height); Assert.Equal(5, result.Length); Assert.Equal(5, result.Width); }