public void CarAudio() { // Arrange CarMotor car = new CarMotor(); var audio = GetAudioMock(); car.SetCarAudioInterface(audio); car.InitializeCarAudio(0.5f, 0.5f); //Act car.CarAudio(); //Assert audio.Received().AdjustPitch(Arg.Any <float>()); audio.Received().AdjustVolumes(Arg.Any <float>(), Arg.Any <float>(), Arg.Any <float>(), Arg.Any <float>()); }
private void Update() { m_Car.CarAudio(); }
public void CarAudio() { // Arrange CarMotor car = new CarMotor(); var audio = GetAudioMock(); car.SetCarAudioInterface(audio); car.InitializeCarAudio(0.5f, 0.5f); //Act car.CarAudio(); //Assert audio.Received().AdjustPitch(Arg.Any<float>()); audio.Received().AdjustVolumes(Arg.Any<float>(), Arg.Any<float>(), Arg.Any<float>(), Arg.Any<float>()); }