mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-21 21:46:27 +02:00
3.0.267 merged
This commit is contained in:
parent
b6fb6394db
commit
67999ef4ae
171 changed files with 6473 additions and 1093 deletions
36
TestShareeLib/Repository/TestAppContextInfo.cs
Normal file
36
TestShareeLib/Repository/TestAppContextInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
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>());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue