2022-01-04 18:54:03 +01:00
|
|
|
|
using NUnit.Framework;
|
2022-01-22 18:16:10 +01:00
|
|
|
|
using System;
|
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
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class TestResult
|
|
|
|
|
{
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestCtor()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
|
|
|
|
new Result<object>(typeof(TestResult), new TestResult(), null).GeneralData,
|
|
|
|
|
Is.Not.Null);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void TestGeneralData()
|
|
|
|
|
{
|
|
|
|
|
Assert.That(
|
2022-01-22 18:16:10 +01:00
|
|
|
|
new Result<object>(typeof(TestResult), new TestResult(), new GeneralData(
|
|
|
|
|
MapSpanFactory.Create(),
|
|
|
|
|
"Hello",
|
2022-01-22 18:28:01 +01:00
|
|
|
|
new Version(0, 0),
|
|
|
|
|
new ResourceUrls())).GeneralData.MerchantMessage,
|
2022-01-04 18:54:03 +01:00
|
|
|
|
Is.EqualTo("Hello"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|