Пример #1
0
        public void Execute_ExistingFileButNotEmpty_True()
        {
            var fileArgs = new FileExistsConditionArgs
                           (
                @"Temp\",
                new LiteralScalarResolver <string>(@"Target"),
                new LiteralScalarResolver <string>(@"myFile.txt"),
                new LiteralScalarResolver <bool>(true)
                           );

            var condition = new FileExistsCondition(fileArgs);

            Assert.That(condition.Validate(), Is.True);
        }
Пример #2
0
 public FileExistsCondition(FileExistsConditionArgs args) => Args = args;