diff --git a/Microsoft.DotNet.Interactive.Rendering.Tests/DictionaryTypes.cs b/Microsoft.DotNet.Interactive.Rendering.Tests/DictionaryTypes.cs
new file mode 100644
index 000000000..1614affa8
--- /dev/null
+++ b/Microsoft.DotNet.Interactive.Rendering.Tests/DictionaryTypes.cs
@@ -0,0 +1,139 @@
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Diagnostics.CodeAnalysis;
+
+namespace Microsoft.DotNet.Interactive.Rendering.Tests
+{
+ ///
+ /// Implements , but not .
+ ///
+ internal class GenericDictionary : IDictionary
+ {
+ private Dictionary _values = new Dictionary();
+
+ public TValue this[TKey key] { get => ((IDictionary)_values)[key]; set => ((IDictionary)_values)[key] = value; }
+
+ public ICollection Keys => ((IDictionary)_values).Keys;
+
+ public ICollection Values => ((IDictionary)_values).Values;
+
+ public int Count => ((IDictionary)_values).Count;
+
+ public bool IsReadOnly => ((IDictionary)_values).IsReadOnly;
+
+ public void Add(TKey key, TValue value)
+ {
+ ((IDictionary)_values).Add(key, value);
+ }
+
+ public void Add(KeyValuePair item)
+ {
+ ((IDictionary)_values).Add(item);
+ }
+
+ public void Clear()
+ {
+ ((IDictionary)_values).Clear();
+ }
+
+ public bool Contains(KeyValuePair item)
+ {
+ return ((IDictionary)_values).Contains(item);
+ }
+
+ public bool ContainsKey(TKey key)
+ {
+ return ((IDictionary)_values).ContainsKey(key);
+ }
+
+ public void CopyTo(KeyValuePair[] array, int arrayIndex)
+ {
+ ((IDictionary)_values).CopyTo(array, arrayIndex);
+ }
+
+ public IEnumerator> GetEnumerator()
+ {
+ return ((IDictionary)_values).GetEnumerator();
+ }
+
+ public bool Remove(TKey key)
+ {
+ return ((IDictionary)_values).Remove(key);
+ }
+
+ public bool Remove(KeyValuePair item)
+ {
+ return ((IDictionary)_values).Remove(item);
+ }
+
+ public bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
+ {
+ return ((IDictionary)_values).TryGetValue(key, out value);
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return ((IDictionary)_values).GetEnumerator();
+ }
+ }
+
+ ///
+ /// Implements , but not .
+ ///
+ internal class NonGenericDictionary : IDictionary
+ {
+ private Dictionary