< Summary

Information
Class: Morpho25.Settings.Turbulence
Assembly: Morpho25
File(s): D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\Turbulence.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 47
Line coverage: 92.3%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_TurbulenceModel()100%1100%
.ctor()100%1100%
get_Title()100%1100%
get_Values()100%1100%
get_Tags()100%1100%
ToString()100%10%

File(s)

D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\Turbulence.cs

#LineLine coverage
 1namespace Morpho25.Settings
 2{
 3    /// <summary>
 4    /// Turbulence class.
 5    /// </summary>
 6    public class Turbulence
 7    {
 8        /// <summary>
 9        /// Turbulence model index.
 10        /// </summary>
 611        public TurbolenceType TurbulenceModel { get; set; }
 12
 13        /// <summary>
 14        /// Create new Turbulence object.
 15        /// </summary>
 216        public Turbulence()
 217        {
 218            TurbulenceModel = TurbolenceType.Bruse;
 219        }
 20
 21        /// <summary>
 22        /// Title of the XML section
 23        /// </summary>
 124        public string Title => "Turbulence";
 25
 26        /// <summary>
 27        /// Values of the XML section
 28        /// </summary>
 129        public string[] Values => new[] {
 130            ((int)TurbulenceModel).ToString()
 131        };
 32
 33        /// <summary>
 34        /// Tags of the XML section
 35        /// </summary>
 136        public string[] Tags => new[] {
 137            "turbulenceModel"
 138        };
 39
 40        /// <summary>
 41        /// String representation of the Turbulence object.
 42        /// </summary>
 43        /// <returns>String representation.</returns>
 044        public override string ToString() => "Config::TurbulenceModel";
 45    }
 46
 47}