using Deltares.DamEngine.Data.General; using Deltares.DamEngine.Io.XmlInput; using NUnit.Framework; namespace Deltares.DamEngine.Interface.Tests { [TestFixture] public class ConversionHelperTests { [Test] [TestCase(InputDamProjectType.Assessment, DamProjectType.Assessment)] [TestCase(InputDamProjectType.AssessmentRegional, DamProjectType.AssessmentRegional)] [TestCase(InputDamProjectType.Design, DamProjectType.Design)] [TestCase(InputDamProjectType.Operational, DamProjectType.Operational)] [TestCase(InputDamProjectType.NWO, DamProjectType.NWO)] public void CanConvertInputDamProjectType(InputDamProjectType inputDamProjectType, DamProjectType damProjectType) { Assert.AreEqual(damProjectType, ConversionHelper.ConvertToDamProjectType(inputDamProjectType)); } [Test] [TestCase(DamProjectType.Assessment, InputDamProjectType.Assessment)] [TestCase(DamProjectType.AssessmentRegional, InputDamProjectType.AssessmentRegional)] [TestCase(DamProjectType.Design, InputDamProjectType.Design)] [TestCase(DamProjectType.Operational, InputDamProjectType.Operational)] [TestCase(DamProjectType.NWO, InputDamProjectType.NWO)] public void CanConvertDamProjectType(DamProjectType damProjectType, InputDamProjectType inputDamProjectType) { Assert.AreEqual(inputDamProjectType, ConversionHelper.ConvertToInputDamProjectType(damProjectType)); } } }