using Schaad.OpenData.Traffic.Geometry; namespace Schaad.OpenData.Tests; public class DirectionTargetTestShould { [Fact] public void ParseDestinationWhenDirectionStartsWithNach() { DirectionTarget.Parse("nach Kreuzlingen").ShouldBe(new DirectionTarget("Kreuzlingen", true)); } [Fact] public void ParseOriginWhenDirectionStartsWithVon() { DirectionTarget.Parse("von Frauenfeld").ShouldBe(new DirectionTarget("Frauenfeld", false)); } [Fact] public void TreatPlainNameAsDestinationWhenDirectionHasNoPrefix() { DirectionTarget.Parse("Diessenhofen").ShouldBe(new DirectionTarget("Diessenhofen", true)); } }