예제 #1
0
 public void NetworkBytes()
 {
     var col = new FileRecordCollection(1, 3, new byte[] { 1, 2, 3,4  });
     Assert.Equal(new byte[] { 6, 0, 1, 0, 3, 0, 2, 1, 2, 3, 4 }, col.NetworkBytes);
 }
예제 #2
0
 public void FileNumber()
 {
     var col = new FileRecordCollection(1, 2, new byte[] { 1, 2, 3, 4 });
     Assert.Equal(1, col.FileNumber);
 }
예제 #3
0
 public void StartingAdress()
 {
     var col = new FileRecordCollection(1, 2, new byte[] { 1, 2, 3, 4 });
     Assert.Equal(2, col.StartingAddress);
 }
예제 #4
0
 public void ByteCount()
 {
     var col = new FileRecordCollection(1, 2, new byte[] { 1, 2, 3, 4 });
     Assert.Equal(11, col.ByteCount);
 }