mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 12:06:29 +02:00
Legacy testing lib added..
This commit is contained in:
parent
0167fc321f
commit
47ed05837e
118 changed files with 17505 additions and 0 deletions
24
TestTINKLib/Fixtures/ObjectTests/User/Account/TestStore.cs
Normal file
24
TestTINKLib/Fixtures/ObjectTests/User/Account/TestStore.cs
Normal file
|
@ -0,0 +1,24 @@
|
|||
using NUnit.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TINK.Model.User.Account;
|
||||
|
||||
namespace UITest.Fixtures.ObjectTests.User.Account
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestStore
|
||||
{
|
||||
[Test, Explicit("Did never ran, file load exception.")]
|
||||
public void TestLoadSaveRoundtrip()
|
||||
{
|
||||
var l_oStore = new Store("4711");
|
||||
l_oStore.Save(new TINK.Model.User.Account.Account("a@b", "112", "3330", new List<string> { "Honkey", "Tonkey" }, 17));
|
||||
var l_oAccount = l_oStore.Load();
|
||||
Assert.AreEqual("a@b", l_oAccount.Mail);
|
||||
Assert.AreEqual("112", l_oAccount.Pwd);
|
||||
Assert.AreEqual("3330", l_oAccount.SessionCookie);
|
||||
Assert.AreEqual("Honkey,Tonkey", String.Join(",", l_oAccount.Group));
|
||||
Assert.AreEqual(17, l_oAccount.DebugLevel);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue