Пример #1
0
        public void StDeleteFilesTest2()
        {
            var target = new FileComponentDeleteFilesStub();

            Assert.Equal(Value.Empty, target.Eval("[IO delete.files({\"file1\", \"file2\", \"file3\"})]"));
            Assert.Equal(3, target.files.Length);
            Assert.True(target.CmpPaths("file1", target.files[0]));
            Assert.True(target.CmpPaths("file2", target.files[1]));
            Assert.True(target.CmpPaths("file3", target.files[2]));
        }
Пример #2
0
        public void StDeleteFilesTest3()
        {
            var target = new FileComponentDeleteFilesStub();

            Assert.Equal(Value.Empty, target.Eval("[IO delete.files({\"file1\", \"file2\", \"file3\"}, {\"file2\", \"file1\"})]"));
            Assert.Single(target.files);
            Assert.True(target.CmpPaths("file3", target.files[0]));
        }