mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 15:16:34 +01:00
36 lines
1,020 B
C#
36 lines
1,020 B
C#
using NUnit.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TINK.Repository.Exception;
|
|
|
|
namespace TestTINKLib.Fixtures.ObjectTests.Repository.Exception
|
|
{
|
|
[TestFixture]
|
|
public class TestNoGPSDataException
|
|
{
|
|
[Test]
|
|
public void TestIsNotAtStation()
|
|
{
|
|
const string responseText = "Failure 2245: No GPS data, state change forbidden.";
|
|
|
|
NoGPSDataException exception = null;
|
|
|
|
Assert.That(() => NoGPSDataException.IsNoGPSData(responseText, out exception),
|
|
Is.EqualTo(true));
|
|
}
|
|
|
|
[Test]
|
|
public void TestIsNotAtStation_InvalidNr()
|
|
{
|
|
const string responseText = "Failure 2248: No GPS data, state change forbidden.";
|
|
|
|
NoGPSDataException exception = null;
|
|
|
|
Assert.That(() => NoGPSDataException.IsNoGPSData(responseText, out exception),
|
|
Is.EqualTo(false));
|
|
}
|
|
}
|
|
}
|