File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
UnitTests/UnitTests.Notifications.Shared Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,35 @@ public void Test_Toast_XML_Toast_ActivationType_Protocol()
61
61
AssertPayload ( "<toast activationType='protocol' />" , toast ) ;
62
62
}
63
63
64
+ [ TestMethod ]
65
+ public void Test_Toast_XML_Toast_Scenario_Default ( )
66
+ {
67
+ var toast = new ToastContent ( )
68
+ {
69
+ Scenario = ToastScenario . Default
70
+ } ;
71
+
72
+ AssertPayload ( "<toast />" , toast ) ;
73
+ }
74
+
75
+ [ TestMethod ]
76
+ public void Test_Toast_XML_Toast_Scenarios ( )
77
+ {
78
+ AssertToastScenario ( ToastScenario . Reminder , "reminder" ) ;
79
+ AssertToastScenario ( ToastScenario . Alarm , "alarm" ) ;
80
+ AssertToastScenario ( ToastScenario . IncomingCall , "incomingCall" ) ;
81
+ }
82
+
83
+ private void AssertToastScenario ( ToastScenario scenario , string scenarioText )
84
+ {
85
+ var toast = new ToastContent ( )
86
+ {
87
+ Scenario = scenario
88
+ } ;
89
+
90
+ AssertPayload ( "<toast scenario='" + scenarioText + "'/>" , toast ) ;
91
+ }
92
+
64
93
[ TestMethod ]
65
94
public void Test_Toast_XML_Toast_Duration_Short ( )
66
95
{
You can’t perform that action at this time.
0 commit comments