public void MapShare() { #if !DEBUG Assert.Multiple(() => { #endif var expected = new Dictionary<string, string> { { "a", "aaa" }, { "b", "aaa" } }; var actual = _object.MapShare(new Dictionary<string, string> { { "a", "aaa" }, { "b", "bbb" }, { "c", "ccc" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "b", "xyz" } }; actual = _object.MapShare(new Dictionary<string, string> { { "b", "xyz" }, { "c", "ccc" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "aaa" }, { "b", "aaa" }, { "d", "hi" } }; actual = _object.MapShare(new Dictionary<string, string> { { "a", "aaa" }, { "c", "meh" }, { "d", "hi" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "xyz" }, { "b", "xyz" }, { "z", "zzz" } }; actual = _object.MapShare(new Dictionary<string, string> { { "a", "xyz" }, { "b", "1234" }, { "c", "yo" }, { "z", "zzz" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "xyz" }, { "b", "xyz" }, { "d", "ddd" }, { "e", "everything" } }; actual = _object.MapShare(new Dictionary<string, string> { { "a", "xyz" }, { "b", "1234" }, { "c", "yo" }, { "d", "ddd" }, { "e", "everything" } }); CollectionAssert.AreEquivalent(expected, actual); #if !DEBUG }); #endif }