mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
37 lines
895 B
C#
37 lines
895 B
C#
|
using NUnit.Framework;
|
|||
|
using System;
|
|||
|
using TINK.Repository;
|
|||
|
|
|||
|
namespace TestShareeLib.Repository
|
|||
|
{
|
|||
|
[TestFixture]
|
|||
|
public class TestAppContextInfo
|
|||
|
{
|
|||
|
[Test]
|
|||
|
public void TestCtor()
|
|||
|
{
|
|||
|
var l_oInfo = new AppContextInfo("123", "app.name", new Version(1, 2));
|
|||
|
Assert.That(
|
|||
|
l_oInfo.UserAgent,
|
|||
|
Is.EqualTo("app.name/1.2"));
|
|||
|
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void TestCtorEmtyMerchant()
|
|||
|
{
|
|||
|
Assert.That(
|
|||
|
() => new AppContextInfo("", "app.name", new Version(1, 2)),
|
|||
|
Throws.TypeOf<ArgumentNullException>());
|
|||
|
}
|
|||
|
|
|||
|
[Test]
|
|||
|
public void TestCtorEmtyAppName()
|
|||
|
{
|
|||
|
Assert.That(
|
|||
|
() => new AppContextInfo("123", "", new Version(1, 2)),
|
|||
|
Throws.TypeOf<ArgumentNullException>());
|
|||
|
}
|
|||
|
}
|
|||
|
}
|