sharee.bike-App/TestTINKLib/Fixtures/ObjectTests/Repository/Exception/TestNoGPSDataException.cs
Anja Müller-Meißner 573fe77e12 Version 3.0.337
2022-08-30 15:42:25 +02:00

32 lines
904 B
C#

using NUnit.Framework;
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));
}
}
}