2022-08-30 15:42:25 +02:00
|
|
|
|
using System;
|
|
|
|
|
using NUnit.Framework;
|
2022-01-22 18:28:01 +01:00
|
|
|
|
using TINK.Model;
|
2022-01-22 18:16:10 +01:00
|
|
|
|
using TINK.Model.Map;
|
2022-01-04 18:54:03 +01:00
|
|
|
|
using TINK.Model.Services.CopriApi;
|
|
|
|
|
using TINK.Services.CopriApi;
|
|
|
|
|
|
|
|
|
|
namespace TestShareeLib.Services.CopriApi
|
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestResult
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestCtor()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
new Result<object>(typeof(TestResult), new TestResult(), null).GeneralData,
|
|
|
|
|
Is.Not.Null);
|
|
|
|
|
}
|
2022-01-04 18:54:03 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
[Test]
|
|
|
|
|
public void TestGeneralData()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
new Result<object>(typeof(TestResult), new TestResult(), new GeneralData(
|
|
|
|
|
MapSpanFactory.Create(),
|
|
|
|
|
"Hello",
|
|
|
|
|
new Version(0, 0),
|
|
|
|
|
new ResourceUrls())).GeneralData.MerchantMessage,
|
|
|
|
|
Is.EqualTo("Hello"));
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-01-04 18:54:03 +01:00
|
|
|
|
}
|