コード例 #1
0
        public void Should_be_able_to_remove_policy()
        {
            Policy policy = Policy.NoOp();
            string key    = Guid.NewGuid().ToString();

            _registry.Add(key, policy);
            _registry.Count.Should().Be(1);

            _registry.Remove(key);
            _registry.Count.Should().Be(0);
        }