Skip to content

Commit c6b60b2

Browse files
committed
unit tests
1 parent 42e8c9f commit c6b60b2

File tree

3 files changed

+133
-1
lines changed

3 files changed

+133
-1
lines changed

src/Bandwidth.Standard.Test/Unit/Model/RbmActionOpenUrlTests.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public RbmActionOpenUrlTests()
3939
type: RbmActionTypeEnum.OPENURL,
4040
text: "TestText",
4141
postbackData: new byte[] { 1, 2, 3 },
42-
url: "https://test.url/"
42+
url: "https://test.url/",
43+
application: RbmOpenUrlEnum.BROWSER,
44+
webviewViewMode: RbmVebViewEnum.FULL
4345
);
4446
}
4547

@@ -96,5 +98,25 @@ public void UrlTest()
9698
Assert.IsType<string>(instance.Url);
9799
Assert.Equal("https://test.url/", instance.Url);
98100
}
101+
102+
/// <summary>
103+
/// Test the property 'Application'
104+
/// </summary>
105+
[Fact]
106+
public void ApplicationTest()
107+
{
108+
Assert.IsType<RbmOpenUrlEnum>(instance.Application);
109+
Assert.Equal(RbmOpenUrlEnum.BROWSER, instance.Application);
110+
}
111+
112+
/// <summary>
113+
/// Test the property 'WebviewViewMode'
114+
/// </summary>
115+
[Fact]
116+
public void WebviewViewModeTest()
117+
{
118+
Assert.IsType<RbmVebViewEnum>(instance.WebviewViewMode);
119+
Assert.Equal(RbmVebViewEnum.FULL, instance.WebviewViewMode);
120+
}
99121
}
100122
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Bandwidth
3+
*
4+
* Bandwidth's Communication APIs
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Contact: [email protected]
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
10+
11+
12+
using Xunit;
13+
14+
using System;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Collections.Generic;
18+
using Bandwidth.Standard.Model;
19+
using Bandwidth.Standard.Client;
20+
using System.Reflection;
21+
using Newtonsoft.Json;
22+
23+
namespace Bandwidth.Standard.Test.Unit.Model
24+
{
25+
/// <summary>
26+
/// Class for testing RbmOpenUrlEnum
27+
/// </summary>
28+
/// <remarks>
29+
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
30+
/// Please update the test case below to test the model.
31+
/// </remarks>
32+
public class RbmOpenUrlEnumTests : IDisposable
33+
{
34+
private RbmOpenUrlEnum instance;
35+
36+
public RbmOpenUrlEnumTests()
37+
{
38+
instance = new RbmOpenUrlEnum();
39+
}
40+
41+
public void Dispose()
42+
{
43+
// Cleanup when everything is done.
44+
}
45+
46+
/// <summary>
47+
/// Test an instance of RbmOpenUrlEnum
48+
/// </summary>
49+
[Fact]
50+
public void RbmOpenUrlEnumInstanceTest()
51+
{
52+
Assert.IsType<RbmOpenUrlEnum>(instance);
53+
}
54+
}
55+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
/*
2+
* Bandwidth
3+
*
4+
* Bandwidth's Communication APIs
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Contact: [email protected]
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
10+
11+
12+
using Xunit;
13+
14+
using System;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Collections.Generic;
18+
using Bandwidth.Standard.Model;
19+
using Bandwidth.Standard.Client;
20+
using System.Reflection;
21+
using Newtonsoft.Json;
22+
23+
namespace Bandwidth.Standard.Test.Unit.Model
24+
{
25+
/// <summary>
26+
/// Class for testing RbmVebViewEnum
27+
/// </summary>
28+
/// <remarks>
29+
/// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
30+
/// Please update the test case below to test the model.
31+
/// </remarks>
32+
public class RbmVebViewEnumTests : IDisposable
33+
{
34+
private RbmVebViewEnum instance;
35+
36+
public RbmVebViewEnumTests()
37+
{
38+
instance = new RbmVebViewEnum();
39+
}
40+
41+
public void Dispose()
42+
{
43+
// Cleanup when everything is done.
44+
}
45+
46+
/// <summary>
47+
/// Test an instance of RbmVebViewEnum
48+
/// </summary>
49+
[Fact]
50+
public void RbmVebViewEnumInstanceTest()
51+
{
52+
Assert.IsType<RbmVebViewEnum>(instance);
53+
}
54+
}
55+
}

0 commit comments

Comments
 (0)