コード例 #1
0
		public void Setup()
		{
			_mockIDownloadToFile = new Mock<IDownloadToFile>(MockBehavior.Strict);
			_mockIMp3Player = new Mock<IMp3Player>(MockBehavior.Strict);	
			_googleTextToSpeach = new GoogleTextToSpeach(_mockIDownloadToFile.Object, _mockIMp3Player.Object);
		}
コード例 #2
0
		public void Play_GivenFullImplementation_ShouldPlayFile()
		{
			Setup();
			// arrange
			_googleTextToSpeach = new GoogleTextToSpeach(new DownloadToFile("./",new SettingsManager("settings.json")), new Mp3Player());
			// action
			_googleTextToSpeach.Play(_longString);
		}