public void Should_be_able_to_check_if_file_exists()
        {
            var dir = new VirtualDirectory();
            var file = new VirtualFile("testfile.txt");

            dir.AddFile(file);

            dir.FileExists("testfile.txt").Should().BeTrue();
        }
        public void Can_add_and_retrieve_files()
        {
            var dir = new VirtualDirectory();
            var file = new VirtualFile("testfile.txt");

            dir.AddFile(file);

            var retrieved = dir.GetFile("testfile.txt");

            retrieved.Should().NotBeNull().And.BeSameAs(file);
        }
 public bool Equals(VirtualDirectory other)
 {
     if (ReferenceEquals(null, other)) return false;
     return ReferenceEquals(this, other) || Equals(other._files, _files);
 }
 public void Setup()
 {
     var dir = new VirtualDirectory();
     _file = new VirtualFile("test.less") {Directory = dir};
     _compiler = new LessCompiler(new TestLogger());
 }