Ejemplo n.º 1
0
        public void TestReadConfig()
        {
            fileService
            .Setup(call => call.ReadAllText("c:\\test.config"))
            .Returns("test=value");

            var results = config.Read("c:\\test.config");

            Assert.AreEqual(1, results.Count);
            Assert.AreEqual("test", results[0].Key);
            Assert.AreEqual("value", results[0].Value);
        }