How unit test is this?

I have been playing with the .NET SpeechSynthesizer lately.

and I have a method that takes a line and creates a WAV file from that line. but how do i unit test this method?

It seems to me that this situation is one in which unit testing cannot help you. I'm right?

+3
source share
3 answers

What do you want to check here?

Is the .NET SpeechSynthesizer API writing a wave file or outputting something to your code that writes a wave file?

- , . ( NET SpeechSynthesizer API). , , , , , . API.NET SpeechSynthesizer - ( API).

- ( TDD, ), , , , ( " ( ) " ). API.

+4

, , . . , . , .

, WAV , , , . , WAV, , .

+2

? , ....?

, , , ...

( ) ( ) , , ..

0
source

Source: https://habr.com/ru/post/1756822/


All Articles