public void MapAB2() { #if !DEBUG Assert.Multiple(() => { #endif var expected = new Dictionary<string, string> { { "c", "cake" } }; var actual = _object.MapAB2(new Dictionary<string, string> { { "a", "aaa" }, { "b", "aaa" }, { "c", "cake" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "aaa" }, { "b", "bbb" } }; actual = _object.MapAB2(new Dictionary<string, string> { { "a", "aaa" }, { "b", "bbb" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "aaa" }, { "b", "bbb" }, { "c", "aaa" } }; actual = _object.MapAB2(new Dictionary<string, string> { { "a", "aaa" }, { "b", "bbb" }, { "c", "aaa" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "aaa" } }; actual = _object.MapAB2(new Dictionary<string, string> { { "a", "aaa" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "b", "bbb" } }; actual = _object.MapAB2(new Dictionary<string, string> { { "b", "bbb" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "c", "ccc" } }; actual = _object.MapAB2(new Dictionary<string, string> { { "a", "" }, { "b", "" }, { "c", "ccc" } }); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string>(); actual = _object.MapAB2(new Dictionary<string, string>()); CollectionAssert.AreEquivalent(expected, actual); expected = new Dictionary<string, string> { { "a", "a" }, { "b", "b" }, { "z", "zebra" } }; actual = _object.MapAB2(new Dictionary<string, string> { { "a", "a" }, { "b", "b" }, { "z", "zebra" } }); CollectionAssert.AreEquivalent(expected, actual); #if !DEBUG }); #endif }