public void VSTestSettingsService_Load_SetsRunDisabled_True()
        {
            string xml = @"<Guitar>
                                <RunDisabledTests>true</RunDisabledTests>
                            </Guitar>";

            VSTestSettingsService service = new VSTestSettingsService();
            service.Load(new XmlTextReader(new StringReader(xml)));

            Assert.AreEqual(true, service.Settings.RunDisabledTests);
        }
        public void VSTestSettingsService_Load_SetsShuffle_False()
        {
            string xml = @"<Guitar>
                                <ShuffleTests>false</ShuffleTests>
                            </Guitar>";

            VSTestSettingsService service = new VSTestSettingsService();
            service.Load(new XmlTextReader(new StringReader(xml)));

            Assert.AreEqual(false, service.Settings.ShuffleTests);
        }
        public void VSTestSettingsService_Load_SetsWorkingDirectory()
        {
            string xml = @"<Guitar>
                                <WorkingDirectory>C:\</WorkingDirectory>
                            </Guitar>";

            VSTestSettingsService service = new VSTestSettingsService();
            service.Load(new XmlTextReader(new StringReader(xml)));

            Assert.AreEqual("C:\\", service.Settings.WorkingDirectory);
        }
        public void VSTestSettingsService_Load_SetsWorkingDirectory_EnvironmentVariable()
        {
            string xml = @"<Guitar>
                                <WorkingDirectory>%TEMP%</WorkingDirectory>
                            </Guitar>";

            VSTestSettingsService service = new VSTestSettingsService();
            service.Load(new XmlTextReader(new StringReader(xml)));

            Assert.AreNotEqual("%TEMP%", service.Settings.WorkingDirectory);
        }