예제 #1
0
    public void StopSound()
    {
        // Arrange
        CarMotor car   = new CarMotor();
        var      audio = GetAudioMock();

        car.SetCarAudioInterface(audio);

        //Act
        car.StopSound();

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

        //Act
        car.StopSound();

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