Пример #1
0
        public void DeleteItemTest()
        {
            var path = _paths.Combine(_baseDirectory, "delete/to-delete.txt");

            CreateFile(path, "This should be deleted");

            _scanner.Exists(path).Should().BeTrue("The file didnt get created so cant be deleted in the test");

            Action a = () => {
                _manager.Delete(path);
            };

            a.ShouldNotThrow();
        }