public void Test_BuildandParseIdent() { bool result = true; string ident = Manifest.BuildIdent("uhuru", "dotnet", "1", "4.5"); if (ident.Where(o => o == ':').Count() < 3) { result = false; } string[] parsed = Manifest.ParseIdent(ident); if ((parsed[0] != "uhuru") || (parsed[1] != "dotnet") || (parsed[2] != "1") || (parsed[3] != "4.5")) { result = false; } try{ result = false; string[] exceptionparse = Manifest.ParseIdent(ident.Replace(":", "-")); } catch (ArgumentException ex) { result = true; } Assert.AreEqual(true, result); }