public void ModifyTags_should_update_properties_with_empty_tags_if_func_returns_null() { IApplicationInfoProperties properties = new TestApplicationInfoProperties(); var replica = "replica"; var replicaTags = new TagCollection { "tag4" }; properties = properties.AddReplicaTags(replica, ReplicaTagKind.Persistent, replicaTags); properties = properties.ModifyReplicaTags(replica, ReplicaTagKind.Persistent, tags => null); properties.GetReplicaTags(replica).Should().BeEmpty(); properties.GetTags().Should().BeEmpty(); }