public void WillNotConvertProjectWithDifferentTypeKindGuids() { string tempProjectName = UnfoldTemporaryProject(TestProjectName); using (new TempFileDeleter(tempProjectName)) { WpfProjectFileConverter converter = new WpfProjectFileConverter(tempProjectName); Assert.IsFalse(converter.IsWpfProject); Assert.IsFalse(converter.CanConvertToWpfProject); converter.ConvertToWpfProject(); } }
public void ConvertingExistingWpfProjectDoesNothing() { string tempProjectName = UnfoldTemporaryProject(WpfProjectName); using (new TempFileDeleter(tempProjectName)) { WpfProjectFileConverter converter = new WpfProjectFileConverter(tempProjectName); Assert.IsTrue(converter.IsWpfProject); converter.ConvertToWpfProject(); Assert.IsTrue(converter.IsWpfProject); Assert.IsFalse(converter.IsDirty); } }
public void CanConvertNonWpfProject() { string tempProjectName = UnfoldTemporaryProject(NonWpfProjectName); using (new TempFileDeleter(tempProjectName)) { WpfProjectFileConverter converter = new WpfProjectFileConverter(tempProjectName); Assert.IsFalse(converter.IsWpfProject); converter.ConvertToWpfProject(); Assert.IsTrue(converter.IsDirty); converter.Save(tempProjectName); Assert.IsFalse(converter.IsDirty); WpfProjectFileConverter verifier = new WpfProjectFileConverter(tempProjectName); Assert.IsTrue(verifier.IsWpfProject); } }