public void SynchronizeForeshoreProfileInput_ChangedForeshoreProfile_ExpectedValues() { // Setup var differentProfile = new ForeshoreProfile(new Point2D(9, 9), new[] { new Point2D(3.3, 4.4), new Point2D(5.5, 6.6) }, new BreakWater(BreakWaterType.Caisson, 2), new ForeshoreProfile.ConstructionProperties { Id = "id", Name = "Some name", Orientation = 123.0 }); var input = new WaveConditionsInput { ForeshoreProfile = new TestForeshoreProfile() }; input.ForeshoreProfile.CopyProperties(differentProfile); // Precondition AssertForeshoreProfileInputProperties(new TestForeshoreProfile(), input); // Call input.SynchronizeForeshoreProfileInput(); // Assert AssertForeshoreProfileInputProperties(differentProfile, input); }
public void SynchronizeForeshoreProfileInput_ForeshoreProfileNotSet_ExpectedValues() { // Setup var input = new WaveConditionsInput { UseBreakWater = true, UseForeshore = true, BreakWater = { Height = (RoundedDouble)1.0, Type = BreakWaterType.Caisson } }; // Call input.SynchronizeForeshoreProfileInput(); // Assert AssertForeshoreProfileInputProperties(null, input); }