public function testCheckServiceProperties()
 {
     $l = new Logging();
     $m = new Metrics();
     $sp = new ServiceProperties();
     $this->assertNull($sp->getLogging(), 'Default ServiceProperties->getLogging should not be null');
     $this->assertNull($sp->getMetrics(), 'Default ServiceProperties->getMetrics should not be null');
     $sp->setLogging($l);
     $sp->setMetrics($m);
     $this->assertEquals($sp->getLogging(), $l, 'Set ServiceProperties->getLogging');
     $this->assertEquals($sp->getMetrics(), $m, 'Set ServiceProperties->getMetrics');
 }
 public function testCheckServiceProperties()
 {
     // Check that the default values of options are reasonable
     $l = new Logging();
     $m = new Metrics();
     $sp = new ServiceProperties();
     $this->assertNull($sp->getLogging(), 'Default ServiceProperties->getLogging should not be null');
     $this->assertNull($sp->getMetrics(), 'Default ServiceProperties->getMetrics should not be null');
     $sp->setLogging($l);
     $sp->setMetrics($m);
     $this->assertEquals($sp->getLogging(), $l, 'Set ServiceProperties->getLogging');
     $this->assertEquals($sp->getMetrics(), $m, 'Set ServiceProperties->getMetrics');
 }
 /**
  * @covers MicrosoftAzure\Storage\Common\Models\ServiceProperties::getMetrics
  */
 public function testGetMetrics()
 {
     // Setup
     $sample = TestResources::getServicePropertiesSample();
     $metrics = Metrics::create($sample['HourMetrics']);
     $result = new ServiceProperties();
     $result->setMetrics($metrics);
     // Test
     $actual = $result->getMetrics($metrics);
     // Assert
     $this->assertEquals($metrics, $actual);
 }