public void TestIsInMediaNull() { Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType()); Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml"); AdifEnumerations aEnums = new AdifEnumerations(str); Credit credit = new Credit("IOTA", aEnums); Assert.IsTrue(credit.IsInMedia(null)); }
public void TestIsInMediaFalse() { Assembly assembly = Assembly.GetAssembly((new AdifField()).GetType()); Stream str = assembly.GetManifestResourceStream("hamqsler.AdifEnumerations.xml"); AdifEnumerations aEnums = new AdifEnumerations(str); Credit credit = new Credit("IOTA:Card&Lotw&eQSL", aEnums); Assert.IsFalse(credit.IsInMedia("QRZCOM")); }