sharee.bike-App/SharedBusinessLogic.Tests/Services/CopriApi/TestResult.cs
2024-04-09 12:53:23 +02:00

33 lines
724 B
C#

using System;
using NUnit.Framework;
using ShareeBike.Model;
using ShareeBike.Model.Map;
using ShareeBike.Model.Services.CopriApi;
using ShareeBike.Services.CopriApi;
namespace SharedBusinessLogic.Tests.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(
new Result<object>(typeof(TestResult), new TestResult(), new GeneralData(
MapSpanFactory.Create(),
"Hello",
new Version(0, 0),
new ResourceUrls())).GeneralData.MerchantMessage,
Is.EqualTo("Hello"));
}
}
}