public void XmlRomInformation_AddColumnToEmptyInstance_AddsColumn() { var xmlRomInformation = new XmlRomInformation(); Assert.Equal(0, xmlRomInformation.RomInfoDatabaseColumns.Length); var value = "value"; xmlRomInformation.AddColumn(XmlRomInformationDatabaseColumnName.format, value); Assert.NotNull(xmlRomInformation.GetColumn(XmlRomInformationDatabaseColumnName.format)); Assert.Equal(value, xmlRomInformation.GetColumn(XmlRomInformationDatabaseColumnName.format).Value); }
public void XmlRomInformation_AddColumnToInstanceWithNullColumns_AddsColumn() { var xmlRomInformation = new XmlRomInformation(); xmlRomInformation.RomInfoDatabaseColumns = null; Assert.Null(xmlRomInformation.RomInfoDatabaseColumns); var value = "value"; xmlRomInformation.AddColumn(XmlRomInformationDatabaseColumnName.format, value); Assert.NotNull(xmlRomInformation.GetColumn(XmlRomInformationDatabaseColumnName.format)); Assert.Equal(value, xmlRomInformation.GetColumn(XmlRomInformationDatabaseColumnName.format).Value); }