<?php

namespace Mos\Guess;

use PHPUnit\Framework\TestCase;

/**
 * Test cases for class Guess.
 */
class GuessExceptionTest extends TestCase
{
    /**
     * Test case to construct object and verify that the object
     * has the expected properties.
     */
    public function testGuessCreateObject()
    {
        $guess = new Guess(50, 3);
        $this->expectException(GuessException::class);
        $this->assertEquals($guess->makeGuess(-1));
        $this->assertEquals($guess->makeGuess(101));
        $this->assertEquals($guess->makeGuess("blah"));
    }
}
