Exemplo n.º 1
0
        public void SetGreetingWavFile_EmptySourcePath_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_mockServer, "objectid", 1033, "", true);

            Assert.IsFalse(res.Success, "");
        }
Exemplo n.º 2
0
        public void SetGreetingWavFile_EmptyObjectId_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_mockServer, "", 1033, "c:\\temp.wav", true);

            Assert.IsFalse(res.Success, "");
        }
Exemplo n.º 3
0
        public void SetGreetingWavFile_NullConnectionServer_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(null, "objectid", 1033, "c:\\temp.wav", true);

            Assert.IsFalse(res.Success, "");
        }
        public void SetGreetingWavFile_InvalidLanguageCode_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_connectionServer, _tempGreeting.ObjectId, 9999, "Dummy.wav", true);

            Assert.IsFalse(res.Success, "calling SetGreetingWavFile with invalid language code did not fail");
        }
        public void SetGreetingWavFile_InvalidWavPath_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_connectionServer, _tempGreeting.ObjectId, 1033, "bogus.wav", true);

            Assert.IsFalse(res.Success, "calling SetGreetingWavFile with invalid WAV path did not fail");
        }
        public void SetGreetingWavFile_InvalidObjectId_Failure()
        {
            var res = PostGreetingRecordingStreamFile.SetGreetingWavFile(_connectionServer, "objectid", 1033, "c:\\temp.wav", true);

            Assert.IsFalse(res.Success, "calling SetGreetingWavFile with invalid ObjectId did not fail");
        }