void ParseValidTypeNameTest(String expected, String testString) { String actual; Int32 offset = SosTypes_Accessor.ParseTypeName(testString, 0, ':', out actual); Assert.AreEqual(offset, testString.Length - 1); Assert.AreEqual(expected, actual); }
void ParseInvalidTypeNameTest(String testString) { String actual; try { SosTypes_Accessor.ParseTypeName(testString, 0, ':', out actual); Assert.Fail("Expected FormatException"); } catch (FormatException e) { Console.WriteLine(e.Message); } }