Пример #1
0
        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);
        }
Пример #2
0
        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);
            }
        }