sharee.bike-App/TestShareeLib/Services/CopriApi/TestGeneralData.cs

39 lines
902 B
C#
Raw Normal View History

2022-01-04 18:54:03 +01:00
using NUnit.Framework;
using System;
using TINK.Services.CopriApi;
namespace TestShareeLib.Services.CopriApi
{
[TestFixture]
public class TestGeneralData
{
[Test]
public void TestCtor()
{
Assert.That(
new GeneralData(null, null).MerchantMessage,
Is.EqualTo(""));
Assert.That(
new GeneralData(null, null).ApiVersion,
Is.EqualTo(new Version(0,0)));
}
[Test]
public void TestMessage()
{
Assert.That(
new GeneralData("Hello", null).MerchantMessage,
Is.EqualTo("Hello"));
}
[Test]
public void TestVersion()
{
Assert.That(
new GeneralData(null, new Version(1,2)).ApiVersion,
Is.EqualTo(new Version(1, 2)));
}
}
}