コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }