Ejemplo n.º 1
0
    public void StopSound()
    {
        // Arrange
        CarMotor car   = new CarMotor();
        var      audio = GetAudioMock();

        car.SetCarAudioInterface(audio);

        //Act
        car.StopSound();

        //Assert
        audio.Received().StopSound();
    }
Ejemplo n.º 2
0
 void OnDestory()
 {
     m_Car.StopSound();
     GameObject.Find("Message").GetComponent <Text>().text = "GAME OVER";
 }
Ejemplo n.º 3
0
    public void StopSound()
    {
        // Arrange
        CarMotor car = new CarMotor();
        var audio = GetAudioMock();
        car.SetCarAudioInterface(audio);

        //Act
        car.StopSound();

        //Assert
        audio.Received().StopSound();
    }