public void Should_be_able_to_clear_registry() { Policy policy = Policy.NoOp(); string key = Guid.NewGuid().ToString(); _registry.Add(key, policy); _registry.Count.Should().Be(1); Policy policy2 = Policy.NoOp(); string key2 = Guid.NewGuid().ToString(); _registry.Add(key2, policy2); _registry.Count.Should().Be(2); _registry.Clear(); _registry.Count.Should().Be(0); }