public void TestInit_Interactive()
        {
            TestInputReader reader = HostEnvironment.InputReader as TestInputReader;

            reader.Inputs.Add("DefaultProvider", "cdnjs");
            reader.Inputs.Add("DefaultDestination:", "wwwroot");

            InitCommand command = new InitCommand(HostEnvironment);

            command.Configure(null);

            int result = command.Execute();

            Assert.AreEqual(0, result);

            string libmanFilePath = Path.Combine(WorkingDir, HostEnvironment.EnvironmentSettings.ManifestFileName);

            Assert.IsTrue(File.Exists(libmanFilePath));

            string contents = File.ReadAllText(libmanFilePath);

            string expectedContents = @"{
  ""version"": ""1.0"",
  ""defaultProvider"": ""cdnjs"",
  ""libraries"": []
}";

            Assert.AreEqual(StringHelper.NormalizeNewLines(expectedContents), StringHelper.NormalizeNewLines(contents));
        }
        public void TestInit_UseDefault()
        {
            HostEnvironment.EnvironmentSettings.DefaultProvider = "unpkg";
            InitCommand command = new InitCommand(HostEnvironment);

            command.Configure(null);

            int result = command.Execute("-y");

            Assert.AreEqual(0, result);

            string libmanFilePath = Path.Combine(WorkingDir, HostEnvironment.EnvironmentSettings.ManifestFileName);

            Assert.IsTrue(File.Exists(libmanFilePath));

            string contents = File.ReadAllText(libmanFilePath);

            string expectedContents = @"{
  ""version"": ""1.0"",
  ""defaultProvider"": ""unpkg"",
  ""libraries"": []
}";

            Assert.AreEqual(StringHelper.NormalizeNewLines(expectedContents), StringHelper.NormalizeNewLines(contents));
        }