コード例 #1
0
        public void ParseTheYamlFile()
        {
            var list   = LanguageYamlFile.ParseYaml().Load <Language>();
            var french = list.First(x => x.Name == "French");

            Assert.Equal("C'est la vie", french.Description);
            var english = list.First(x => x.Name == "English");

            Assert.Equal("Good day old boy", english.Description);
        }
コード例 #2
0
        public void ParseTheYamlFile()
        {
            var gateway = new LanguageYamlGateway(LanguageYamlFile.ParseYaml());
            var french  = gateway.All().First(x => x.Name == "French");

            Assert.AreEqual("C'est la vie", french.Description);
            var english = gateway.All().First(x => x.Name == "English");

            Assert.AreEqual("Good day old boy", english.Description);
        }