blob: 0a5c5a8be47547ae8fdbd542d159f156e55808c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
using System;
using NUnit.Framework;
namespace Xamarin.Forms.Core.UnitTests
{
[TestFixture]
public class AppLinkEntryTests : BaseTestFixture
{
[Test]
public void KeyValuesTest()
{
var entry = new AppLinkEntry();
entry.KeyValues.Add("contentType", "GalleryPage");
entry.KeyValues.Add("companyName", "Xamarin");
Assert.AreEqual(entry.KeyValues.Count, 2);
}
[Test]
public void FromUriTest()
{
var uri = new Uri("http://foo.com");
var entry = AppLinkEntry.FromUri(uri);
Assert.AreEqual(uri, entry.AppLinkUri);
}
[Test]
public void ToStringTest()
{
var str = "http://foo.com";
var uri = new Uri(str);
var entry = new AppLinkEntry { AppLinkUri = uri };
Assert.AreEqual(uri.ToString(), entry.ToString());
}
}
}
|