public Matches ( |
||
inMedia | The MediaList to compare | |
return | bool |
public bool Matches(MediaList inMedia)
{
if(inMedia.Length == 0) return false;
else if(Length == 0 || containsAll)
{
// is empty or this list contains "all"
return true;
}
else
{
for(ulong i = 0; i<inMedia.Length; i++)
{
if(medias.Contains(inMedia[i])) return true;
}
}
return false;
}
public void TestMatchesEmpty() { MediaList ssList = new MediaList(String.Empty); MediaList rendList = new MediaList("screen"); Assert.IsTrue(ssList.Matches(rendList)); }