コード例 #1
0
        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());
        }
コード例 #2
0
        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>));
        }