示例#1
0
        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));
        }
示例#2
0
        public void ValidatesFileExists()
        {
            var progress = new Progress <string>(x => { });

            Assert.IsFalse(ProjectConverter.Validate(new FileInfo(Path.Combine("TestFiles", "OtherTestProjects", "nonexistent.testcsproj")), progress));
        }
示例#3
0
 public void ValidatesFileExists()
 {
     Assert.IsFalse(ProjectConverter.Validate(new FileInfo(Path.Combine("TestFiles", "OtherTestProjects", "nonexistent.testcsproj")), NoopLogger.Instance));
 }
示例#4
0
        public void ValidatesFileExists()
        {
            var progress = new Progress <string>(x => { });

            Assert.IsFalse(ProjectConverter.Validate(new FileInfo("TestFiles\\nonexistent.testcsproj"), progress));
        }