public void TestMultiStringGetValues() { TextInfoFrame testFrame = new TextInfoFrame( new FrameFlagSet(new byte[] { 0x00, 0x00 }), new byte[] { 0x03, 0xD0, 0x98, 0xD0, 0xBD, 0xD1, 0x82, 0xD1, 0x80, 0xD0, 0xBE, 0x00, 0xD0, 0x9A, 0xD1, 0x80, 0xD0, 0xB8, 0xD0, 0xBA, 0xD0, 0xB8 } ); string[] expValues = new string[] { "Интро", "Крики" }; CollectionAssert.AreEqual(expValues, testFrame.GetValues()); }
public void TestMultiStringIndexer() { TextInfoFrame testFrame = new TextInfoFrame( new FrameFlagSet(new byte[] { 0x00, 0x00 }), new byte[] { 0x03, 0xD0, 0x98, 0xD0, 0xBD, 0xD1, 0x82, 0xD1, 0x80, 0xD0, 0xBE, 0x00, 0xD0, 0x9A, 0xD1, 0x80, 0xD0, 0xB8, 0xD0, 0xBA, 0xD0, 0xB8 } ); string[] expValues = new string[] { "Интро", "Крики" }; for (int i = 0; i < testFrame.GetValues().Length; i++) { Assert.AreEqual(expValues[i], testFrame[i]); } }