public void XmlRomInformationToProgramRomInformationConverter_CreateWithDatabaseContaingMatchAndConvertXmlInfo_ProducesValidConversion() { var database = new XmlRomInformationToProgramRomInformationConverterTestProgramDatabase(); var testProgramInformation = new TestProgramInformation(); database.AddProgram(testProgramInformation); var converter = XmlRomInformationToProgramRomInformationConverter.Create(database); var xmlRomInformation = CreateTestInformationForConversion(XmlInformationKind.FullyPopulated); var convertedInformation = converter.Convert(xmlRomInformation); ValidateInformation(testProgramInformation, convertedInformation); ValidateDescription(testProgramInformation.ToDescription(), convertedInformation); ValidateFeatures(XmlProgramFeatures.Value, convertedInformation.Features); ValidateMetadata(XmlProgramMetadata.Value, convertedInformation.Metadata); }