@@ -64,12 +64,16 @@ Task TestCreateLongLinkAsync() {
64
64
return result ;
65
65
} ;
66
66
67
+ // Dynamic Links uses the Application identifier for some of the fields.
68
+ // Note that on Windows and Linux desktop, this field will likely be empty.
69
+ string identifier = Application . identifier ;
70
+
67
71
// This is taken from the values given in UIHandler.
68
72
var expected =
69
73
urlHost + "/?afl=https://mysite/fallback&" +
70
- "amv=12&apn=com.google.FirebaseUnityDynamicLinksTestApp.dev &at=abcdefg&ct=hijklmno&" +
71
- "ibi=com.google.FirebaseUnityDynamicLinksTestApp.dev &ifl=https://mysite/fallback&imv=1.2.3&" +
72
- "ipbi=com.google.FirebaseUnityDynamicLinksTestApp.dev &" +
74
+ "amv=12&apn=" + identifier + " &at=abcdefg&ct=hijklmno&" +
75
+ "ibi=" + identifier + " &ifl=https://mysite/fallback&imv=1.2.3&" +
76
+ "ipbi=" + identifier + " &" +
73
77
"ipfl=https://mysite/fallbackipad&ius=mycustomscheme&link=https://google.com/abc&" +
74
78
"pt=pq-rstuv&sd=My app is awesome!&si=https://mysite.com/someimage.jpg&st=My App!&" +
75
79
"utm_campaign=mycampaign&utm_content=mycontent&utm_medium=mymedium&utm_source=mysource&" +
@@ -105,7 +109,8 @@ Task TestCreateLongLinkAsync() {
105
109
differences . Add ( String . Format (
106
110
"{0}: \n " +
107
111
" Expected: {1}\n " +
108
- " Actual: {2}" , key , expectedParams [ key ] , resultParams [ key ] ) ) ;
112
+ " Actual: {2}" , key , expectedParams [ key ] ,
113
+ resultParams . ContainsKey ( key ) ? resultParams [ key ] : "(missing key)" ) ) ;
109
114
}
110
115
}
111
116
source . TrySetException ( new Exception ( String . Join ( "\n " , differences . ToArray ( ) ) ) ) ;
0 commit comments