mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-20 12:06:29 +02:00
3.0.276
This commit is contained in:
parent
578fcee611
commit
6ed1579494
34 changed files with 357 additions and 89 deletions
33
TestShareeLib/ViewModel/Bikes/Bike/TestBikeViewModelBase.cs
Normal file
33
TestShareeLib/ViewModel/Bikes/Bike/TestBikeViewModelBase.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
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(""));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue