mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 18:46:30 +01:00
38 lines
902 B
C#
38 lines
902 B
C#
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)));
|
|
}
|
|
}
|
|
}
|