public void AsEnumNegativeTest()
        {
            AltType defaultValue = AltType.Altitude;
            string  value        = "Magnitude";
            AltType actual       = StringExtensions.AsEnum <AltType>(value, defaultValue);

            Assert.AreEqual(defaultValue, actual);
        }
        public void AsEnumTest()
        {
            AltType defaultValue = AltType.Altitude;
            AltType expected     = AltType.Depth;
            string  value        = Convert.ToString(expected, CultureInfo.InvariantCulture);
            AltType actual       = StringExtensions.AsEnum <AltType>(value, defaultValue);

            Assert.AreEqual(expected, actual);
        }