mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-07-07 12:06:43 +02:00
Version 3.0.376
This commit is contained in:
parent
ca080c87c0
commit
f963c0a219
158 changed files with 3228 additions and 1279 deletions
|
@ -0,0 +1,31 @@
|
|||
using System.Collections.Generic;
|
||||
using NUnit.Framework;
|
||||
using TINK.Model;
|
||||
using TINK.ViewModel.SelectBike;
|
||||
using TINK.ViewModel.Map;
|
||||
|
||||
namespace TestShareeLib.ViewModel.SelectBike
|
||||
{
|
||||
[TestFixture]
|
||||
public class TestSelectBikePageViewModel
|
||||
{
|
||||
[Test]
|
||||
public void TestSelectBikeGetActiveFilteredBikeTypeCity() =>
|
||||
Assert.That(
|
||||
SelectBikePageViewModel.GetActiveFilteredBikeType(new GroupFilterMapPage(new Dictionary<string, FilterState> { { "300103" /* Citybike */, TINK.Model.FilterState.On }, { "300101", TINK.Model.FilterState.Off } })),
|
||||
Is.EqualTo("City bike"));
|
||||
|
||||
[Test]
|
||||
public void TestSelectBikeGetActiveFilteredBikeTypeCargo() =>
|
||||
Assert.That(
|
||||
SelectBikePageViewModel.GetActiveFilteredBikeType(new GroupFilterMapPage(new Dictionary<string, FilterState> { { "300103" /* Citybike */, TINK.Model.FilterState.Off }, { "300101", TINK.Model.FilterState.On } })),
|
||||
Is.EqualTo("Cargo bike"));
|
||||
|
||||
[Test]
|
||||
public void TestSelectBikeGetActiveFilteredBikeType() =>
|
||||
Assert.That(
|
||||
SelectBikePageViewModel.GetActiveFilteredBikeType(new GroupFilterMapPage(new Dictionary<string, FilterState>())),
|
||||
Is.EqualTo(""));
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue