Esempio n. 1
0
        public void TestRemoveAlias()
        {
            var config = new Config();

            config.SetValue("Aliases", "test", "alias one");

            Mock <IConfigService>()
            .Setup(call => call.GetConfig())
            .Returns(config);

            service.RemoveAlias("test");

            Assert.AreEqual(string.Empty, config.GetValue("Aliases", "test", string.Empty));
        }