mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-23 07:36:31 +01:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
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(""));
|
|
}
|
|
}
|
|
}
|