public void GetRomName_WhenIDDoesNotExist_ReturnsEmptyString() { var dictionary = new RomNameDictionary(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "snesromnames.csv")); var result = dictionary.GetRomName("WUP-JUNKANDSUCH"); Assert.Equal(string.Empty, result); }
public void GetRomName_WhenIDExists_ReturnsRomName() { var dictionary = new RomNameDictionary(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "snesromnames.csv")); var result = dictionary.GetRomName("WUP-JDBE"); Assert.Equal("Rival Turf", result); }