/**
  * @covers WindowsAzure\Table\Models\Filters\UnaryFilter::__construct
  * @covers WindowsAzure\Table\Models\Filters\UnaryFilter::getOperand
  */
 public function testGetOperand()
 {
     // Setup
     $expected = null;
     $filter = new UnaryFilter(null, $expected);
     // Assert
     $this->assertEquals($expected, $filter->getOperand());
 }
 public function testCheckUnaryFilter()
 {
     $filter = new UnaryFilter(null, null);
     $this->assertNotNull($filter, 'Default $filter');
     $this->assertNull($filter->getOperand(), 'Default UnaryFilter->getOperand');
     $this->assertNull($filter->getOperator(), 'Default UnaryFilter->getOperator');
     $operand = new BinaryFilter(null, null, null);
     $operator = 'foo';
     $filter = new UnaryFilter($operator, $operand);
     $this->assertEquals($operand, $filter->getOperand(), 'Set UnaryFilter->getOperand');
     $this->assertEquals($operator, $filter->getOperator(), 'Set UnaryFilter->getOperator');
     // Now check the factory.
     $operand = new ConstantFilter(EdmType::STRING, null);
     $filter = Filter::applyNot($operand);
     $this->assertEquals($operand, $filter->getOperand(), 'Unary factory UnaryFilter->getOperand');
     $this->assertEquals('not', $filter->getOperator(), 'Unary factory UnaryFilter->getOperator');
 }