public void DeleteUnusedKeyFlushesToDisk() { FileBasedDictionaryFileSystem fs = new FileBasedDictionaryFileSystem(); FileBasedDictionary <string, string> dut = CreateFileBasedDictionary(fs, TestEntry); dut.RemoveAndFlush("UnusedKey"); fs.ExpectedFiles[MockEntryFileName].ReadAsString().ShouldEqual(TestEntry); }