-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from Bandwidth/SWI-2564
SWI-2564
- Loading branch information
Showing
6 changed files
with
118 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Bandwidth.Standard.Voice.Bxml; | ||
using Xunit; | ||
|
||
namespace Bandwidth.StandardTests.Voice.Bxml | ||
{ | ||
public class RecordingTests | ||
{ | ||
|
||
[Fact] | ||
public void RecordingShouldHaveDetectLanguage() | ||
{ | ||
var recording = new Bandwidth.Standard.Voice.Bxml.Record(); | ||
recording.DetectLanguage = true; | ||
|
||
|
||
var bxml = new BXML(recording); | ||
|
||
Assert.Equal("<?xml version=\"1.0\" encoding=\"utf-8\"?><Bxml> <Record detectLanguage=\"true\" transcribe=\"false\" /></Bxml>", bxml.ToBXML().Replace("\n", "").Replace("\r", "")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Bandwidth.Standard.Voice.Bxml; | ||
using Xunit; | ||
|
||
namespace Bandwidth.StandardTests.Voice.Bxml | ||
{ | ||
public class StartRecordingTests | ||
{ | ||
|
||
[Fact] | ||
public void RecordingShouldHaveDetectLanguage() | ||
{ | ||
var recording = new StartRecording(); | ||
recording.DetectLanguage = true; | ||
|
||
|
||
var bxml = new BXML(recording); | ||
|
||
Assert.Equal("<?xml version=\"1.0\" encoding=\"utf-8\"?><Bxml> <StartRecording detectLanguage=\"true\" transcribe=\"false\" multiChannel=\"false\" /></Bxml>", bxml.ToBXML().Replace("\n", "").Replace("\r", "")); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters