- ChanSort didn't work properly for Turkish (and other system locales) that don't translate ".bin" to uppercase

".BIN" and ".BIN" to lowercase ".bin".
- Philips: Removing a channel from a list is no longer possible (because it is not supported by the TV's import).
  When saving a file, all unsorted channels will be placed at the end of the list.
- support for Philips Repair\mgr_chan_s_fta.db lists is now read-only. Files can be used as a reference list,
  but modifying them won't be possible.
This commit is contained in:
Horst Beham
2021-08-31 22:13:28 +02:00
parent b0b09de733
commit 1b250b2a18
24 changed files with 225 additions and 148 deletions

View File

@@ -8,34 +8,34 @@ namespace Test.Loader.Philips
[TestClass]
public class PhilipsXmlTest
{
#region TestFormat1SatChannelsAddedToCorrectLists
#region TestRepairFormatCableChannelsAddedToCorrectLists
[TestMethod]
public void TestFormat1SatChannelsAddedToCorrectLists()
public void TestRepairFormatCableChannelsAddedToCorrectLists()
{
// this file format doesn't provide any information whether a channel is TV/radio/data or analog/digital. It only contains the "medium" for antenna/cable/sat
var file = TestUtils.DeploymentItem("Test.Loader.Philips\\TestFiles") + "\\Repair\\CM_TPM1013E_LA_CK.xml";
this.TestChannelsAddedToCorrectLists(file, SignalSource.DvbC, 483, 0, 0);
}
#endregion
#region TestChannelMapFormatSatChannelsAddedToCorrectLists
[TestMethod]
public void TestChannelMapFormatSatChannelsAddedToCorrectLists()
{
var file = TestUtils.DeploymentItem("Test.Loader.Philips\\TestFiles") + "\\ChannelMap_100\\ChannelList\\chanLst.bin";
this.TestChannelsAddedToCorrectLists(file, SignalSource.DvbS, 502, 350, 152);
}
#endregion
#region TestFormat1CableChannelsAddedToCorrectLists
#region TestChannelMapFormatCableChannelsAddedToCorrectLists
[TestMethod]
public void TestFormat1CableChannelsAddedToCorrectLists()
public void TestChannelMapFormatCableChannelsAddedToCorrectLists()
{
var file = TestUtils.DeploymentItem("Test.Loader.Philips\\TestFiles") + "\\ChannelMap_100\\ChannelList\\chanLst.bin";
this.TestChannelsAddedToCorrectLists(file, SignalSource.DvbC, 459, 358, 101);
}
#endregion
#region TestFormat2CableChannelsAddedToCorrectLists
[TestMethod]
public void TestFormat2CableChannelsAddedToCorrectLists()
{
// this file format doesn't provide any information whether a channel is TV/radio/data or analog/digital. It only contains the "medium" for antenna/cable/sat
var file = TestUtils.DeploymentItem("Test.Loader.Philips\\TestFiles") + "\\Repair\\CM_TPM1013E_LA_CK.xml";
this.TestChannelsAddedToCorrectLists(file, SignalSource.DvbC, 483, 0, 0);
}
#endregion
#region TestChannelsAddedToCorrectList
private void TestChannelsAddedToCorrectLists(string filePath, SignalSource signalSource, int expectedTotal, int expectedTv, int expectedRadio)