Example #1
0
 /**
  * @covers MicrosoftAzure\Storage\Table\Models\Entity::getPropertyValue
  * @covers MicrosoftAzure\Storage\Table\Models\Entity::setPropertyValue
  */
 public function testGetPropertyValue()
 {
     // Setup
     $entity = new Entity();
     $name = 'name';
     $edmType = EdmType::STRING;
     $value = 'MyName';
     $expected = 'MyNewName';
     $entity->addProperty($name, $edmType, $value);
     $entity->setPropertyValue($name, $expected);
     // Test
     $actual = $entity->getPropertyValue($name);
     // Assert
     $this->assertEquals($actual, $expected);
 }