mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 22:07:28 +02:00
Legacy testing lib added..
This commit is contained in:
parent
0167fc321f
commit
47ed05837e
118 changed files with 17505 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
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));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue