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

        car.SetCarAudioInterface(audio);

        //Act
        car.StopSound();

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

        //Act
        car.StopSound();

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