public void TestParse() { foreach (string name in Enum.GetNames(typeof(CodecID))) { Assert.IsTrue(Enum.IsDefined(typeof(CodecID), Codecs.Parse(name)), "Codecs.Parse()"); } Assert.AreEqual(CodecID.Unknown, Codecs.Parse(InvalidName), "Codecs.Parse() invalid name"); }