@@ -1499,6 +1499,54 @@ public void TestUserTextInformationFrame ()
1499
1499
} ) ;
1500
1500
}
1501
1501
1502
+ [ Test ]
1503
+ public void TestMovementNameFrame ( )
1504
+ {
1505
+ ByteVector id = "MVNM" ;
1506
+ var frame = new TextInformationFrame ( id ) {
1507
+ Text = val_mult
1508
+ } ;
1509
+
1510
+ FrameTest ( frame , 2 ,
1511
+ delegate ( Frame f , StringType e ) {
1512
+ ( f as TextInformationFrame ) . TextEncoding = e ;
1513
+ } ,
1514
+ ( d , v ) => new TextInformationFrame ( d , v ) ,
1515
+
1516
+ delegate ( Frame f , string m ) {
1517
+ var g = ( f as TextInformationFrame ) ;
1518
+ Assert . AreEqual ( id , g . FrameId , m ) ;
1519
+ Assert . AreEqual ( val_mult . Length , g . Text . Length , m ) ;
1520
+ for ( int i = 0 ; i < val_mult . Length ; i ++ ) {
1521
+ Assert . AreEqual ( val_mult [ i ] , g . Text [ i ] , m ) ;
1522
+ }
1523
+ } ) ;
1524
+ }
1525
+
1526
+ [ Test ]
1527
+ public void TestMovementNumberFrame ( )
1528
+ {
1529
+ ByteVector id = "MVIN" ;
1530
+ var frame = new TextInformationFrame ( id ) {
1531
+ Text = val_mult
1532
+ } ;
1533
+
1534
+ FrameTest ( frame , 2 ,
1535
+ delegate ( Frame f , StringType e ) {
1536
+ ( f as TextInformationFrame ) . TextEncoding = e ;
1537
+ } ,
1538
+ ( d , v ) => new TextInformationFrame ( d , v ) ,
1539
+
1540
+ delegate ( Frame f , string m ) {
1541
+ var g = ( f as TextInformationFrame ) ;
1542
+ Assert . AreEqual ( id , g . FrameId , m ) ;
1543
+ Assert . AreEqual ( val_mult . Length , g . Text . Length , m ) ;
1544
+ for ( int i = 0 ; i < val_mult . Length ; i ++ ) {
1545
+ Assert . AreEqual ( val_mult [ i ] , g . Text [ i ] , m ) ;
1546
+ }
1547
+ } ) ;
1548
+ }
1549
+
1502
1550
[ Test ]
1503
1551
public void TestUniqueFileIdentifierFrame ( )
1504
1552
{
0 commit comments