public void SynchronizeForeshoreProfileInput_ChangedForeshoreProfile_ExpectedValues() { // Setup var differentProfile = new TestForeshoreProfile(true); var input = new SimpleStructuresInput { ForeshoreProfile = new TestForeshoreProfile() }; input.ForeshoreProfile.CopyProperties(differentProfile); // Precondition AssertForeshoreProfilePropertiesOfInput(new TestForeshoreProfile(), input); // Call input.SynchronizeForeshoreProfileInput(); // Assert AssertForeshoreProfilePropertiesOfInput(differentProfile, input); }
public void SynchronizeForeshoreProfileInput_ForeshoreProfileNotSet_ExpectedValues() { // Setup var input = new SimpleStructuresInput { UseBreakWater = true, UseForeshore = true, BreakWater = { Height = (RoundedDouble)1.0, Type = BreakWaterType.Caisson } }; // Call input.SynchronizeForeshoreProfileInput(); // Assert AssertForeshoreProfilePropertiesOfInput(null, input); }