public void ValidatesFileIsWritable() { var progress = new Progress <string>(x => { }); File.SetAttributes("TestFiles\\OtherTestProjects\\readonly.testcsproj", FileAttributes.ReadOnly); Assert.IsFalse(ProjectConverter.Validate(new FileInfo("TestFiles\\OtherTestProjects\\readonly.testcsproj"), progress)); }
public void ValidatesFileExists() { var progress = new Progress <string>(x => { }); Assert.IsFalse(ProjectConverter.Validate(new FileInfo(Path.Combine("TestFiles", "OtherTestProjects", "nonexistent.testcsproj")), progress)); }
public void ValidatesFileExists() { Assert.IsFalse(ProjectConverter.Validate(new FileInfo(Path.Combine("TestFiles", "OtherTestProjects", "nonexistent.testcsproj")), NoopLogger.Instance)); }
public void ValidatesFileExists() { var progress = new Progress <string>(x => { }); Assert.IsFalse(ProjectConverter.Validate(new FileInfo("TestFiles\\nonexistent.testcsproj"), progress)); }