示例#1
0
        public void TestGetStringCount()
        {
            string[] testStrings = new string[] {
                "test String",
                "test\0test\0test"
            };

            int[] expValues = new int[] { 1, 2 };

            for (int i = 9; i < expValues.Length; i++)
            {
                Assert.AreEqual(expValues[i], TextFrame_TestClass.GetNewStringCount(testStrings[i]));
            }
        }
示例#2
0
 public Abstract_TextFrameTest()
 {
     testArray = new byte[] { 0x03, 0x74, 0x69, 0x74, 0x6C, 0x65 };
     ffs       = new FrameFlagSet(new byte[] { 0x00, 0x00 });
     test      = new TextFrame_TestClass(ffs, testArray);
 }