bobvanderlinden / sharpfilesystem

A virtual file system for .NET written in C#
MIT License
282 stars 69 forks source link

Tests physical memory #5

Closed binki closed 8 years ago

binki commented 8 years ago

I thought I would fiddle around with exercising PhysicalFileSystem and MemoryFileSystem for a bit. These are the tests cases I came up with. I discovered that each MemoryFileSystem.CreateFile() call was creating a new entry in GetEntities(), so I added a fix to ensure that each file only gets listed once regardless of how many times it is created to better emulate real filesystems.

FrozenCow commented 8 years ago

Thanks for sparking some life into this project. This one is a no-brainer. Thanks for the fix and additional tests.