@@ -367,4 +367,36 @@ class BarChartTests: XCTestCase {
367367 chart. notifyDataSetChanged ( )
368368 assertChartSnapshot ( matching: chart)
369369 }
370+
371+ func testBarShadow( ) {
372+ let dataEntries = setupDefaultValuesDataEntries ( )
373+ let dataSet = setupDefaultDataSet ( chartDataEntries: dataEntries)
374+ let chart = setupDefaultChart ( dataSets: [ dataSet] )
375+ dataSet. barShadowColor = NSUIColor ( red: 255.0 / 255.0 , green: 187.0 / 255.0 , blue: 115.0 / 255.0 , alpha: 1.0 )
376+ chart. drawBarShadowEnabled = true
377+ chart. notifyDataSetChanged ( )
378+ assertChartSnapshot ( matching: chart)
379+ }
380+
381+ func testHighlightSingleValue( ) {
382+ let dataEntries = setupDefaultValuesDataEntries ( )
383+ let dataSet = setupDefaultDataSet ( chartDataEntries: dataEntries)
384+ let chart = setupDefaultChart ( dataSets: [ dataSet] )
385+ chart. notifyDataSetChanged ( )
386+ chart. highlightValue ( x: dataEntries [ 0 ] . x, dataSetIndex: 0 , callDelegate: false )
387+ assertChartSnapshot ( matching: chart)
388+ }
389+
390+ func testHighlightMultipleValue( ) {
391+ let dataEntries = setupDefaultValuesDataEntries ( )
392+ let dataSet = setupDefaultDataSet ( chartDataEntries: dataEntries)
393+ let chart = setupDefaultChart ( dataSets: [ dataSet] )
394+ chart. notifyDataSetChanged ( )
395+ chart. highlightValues (
396+ [ . init( x: dataEntries [ 0 ] . x, y: dataEntries [ 0 ] . y, dataSetIndex: 0 ) ,
397+ . init( x: dataEntries [ 4 ] . x, y: dataEntries [ 4 ] . y, dataSetIndex: 0 ) ,
398+ . init( x: dataEntries [ 5 ] . x, y: dataEntries [ 5 ] . y, dataSetIndex: 0 ) ]
399+ )
400+ assertChartSnapshot ( matching: chart)
401+ }
370402}
0 commit comments