public void DNXVersion()
 {
     settings = new DNXSettings(parse("-v"));
     Assert.IsNull(settings.DNXVersion);
     string dnxVersion = "1.0.0-beta8-15616";
     settings = new DNXSettings(parse("-v " + dnxVersion));
     Assert.AreEqual(dnxVersion, settings.DNXVersion);
     Assert.AreEqual("install 1.0.0-beta8-15616 -Persist -r clr -arch x64", settings.CreateArgsForDNX());
 }
        public void Runtime()
        {
            settings = new DNXSettings(parse("-r coreclr"));
            AssertSettings("coreclr", "x64", false);
            Assert.AreEqual("upgrade -r coreclr -arch x64", settings.CreateArgsForDNX());

            settings = new DNXSettings(parse("-r clr"));
            AssertSettings("clr", "x64", false);
            Assert.AreEqual("upgrade -r clr -arch x64", settings.CreateArgsForDNX());
        }
 public void Unstable()
 {
     settings = new DNXSettings(parse("-u"));
     Assert.IsTrue(settings.UnstableChannel);
     Assert.AreEqual("upgrade -r clr -arch x64 -u", settings.CreateArgsForDNX());
 }
 public void DefaultSettings() {
     settings = new DNXSettings(null);
     AssertSettings("clr", "x64", false);
     Assert.AreEqual("upgrade -r clr -arch x64", settings.CreateArgsForDNX());
 }