public void TestValueOfMetal() { IInterGalacticMapper mapper = new InterGalacticMapper(); IDictionary <string, double> testDict = mapper.GenerateCommonMetalToCreditMap("glob glob Silver is 34 Credits", mapper.GenerateInterGalacticUnitMap("glob is I")); Assert.AreEqual("silver", testDict.Keys.First()); Assert.AreEqual(17, testDict.Values.First()); }
public void GenerateCommonMetalToCreditMap() { IInterGalacticMapper mapper = new InterGalacticMapper(); Assert.IsInstanceOfType(mapper.GenerateCommonMetalToCreditMap("glob glob Silver is 34 Credits", mapper.GenerateInterGalacticUnitMap("glob is I")), typeof(Dictionary <string, double>)); }