mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-12 13:36:26 +01:00
33 lines
939 B
C#
33 lines
939 B
C#
using NUnit.Framework;
|
|
using TINK.ViewModel.Bikes.Bike;
|
|
|
|
namespace TestShareeLib.ViewModel.Bikes.Bike
|
|
{
|
|
[TestFixture]
|
|
public class TestBikeViewModelBase
|
|
{
|
|
[Test]
|
|
public void TestGetUrl()
|
|
{
|
|
Assert.That(
|
|
BikeViewModelBase.GetUrlFirstOrDefault(@"Mit der Mietrad Anmietung wird folgender Betreiber <a href='https://shareeapp-fr01.copri.eu/site/agb.html' target='_blank'>AGB</a> zugestimmt (als Demo sharee AGB)."),
|
|
Is.EqualTo(@"https://shareeapp-fr01.copri.eu/site/agb.html"));
|
|
}
|
|
|
|
[Test]
|
|
public void TestGetUrlNoProtocol()
|
|
{
|
|
Assert.That(
|
|
BikeViewModelBase.GetUrlFirstOrDefault(@"Mit der Mietrad Anmietung wird folgender Betreiber <a href='shareeapp-fr01.copri.eu/site/agb.html' target='_blank'>AGB</a> zugestimmt (als Demo sharee AGB)."),
|
|
Is.EqualTo(""));
|
|
}
|
|
|
|
[Test]
|
|
public void TestGetUrlNull()
|
|
{
|
|
Assert.That(
|
|
BikeViewModelBase.GetUrlFirstOrDefault(null),
|
|
Is.EqualTo(""));
|
|
}
|
|
}
|
|
}
|