public void TestCmd() { Assert.AreEqual(Cmd.Count, 3); Assert.AreEqual(Cmd.ContainsKey("DEF"), true); Assert.AreEqual(Cmd.ContainsKey("G01"), true); Assert.AreEqual(Cmd.ContainsKey("G02"), true); Assert.AreEqual(Cmd["DEF"].Values.Any(c => c.Key == "DEF.Test001"), true); Assert.AreEqual(Cmd["DEF"].Values.Any(c => c.Key == "DEF.DEFTest001"), true); Assert.AreEqual(Cmd["DEF"].Values.Any(c => c.Key == "DEF.Test002"), true); Assert.AreEqual(Cmd["G01"].Values.Any(c => c.Key == "G01.G01Test001"), true); Assert.AreEqual(Cmd["G01"].Values.Any(c => c.Key == "G01.G01Test002"), true); Assert.AreEqual(Cmd["G01"].Values.Any(c => c.Key == "G01.Test002"), true); Assert.AreEqual(Cmd["G02"].Values.Any(c => c.Key == "G02.G02Test002"), true); }