public static void TestEmptyDictionaryReturnFalse() { var editorConfigStorageLocation = new EditorConfigStorageLocation(); var result = editorConfigStorageLocation.TryParseReadonlyDictionary(new Dictionary <string, object>(), typeof(NamingStylePreferences), out var @object); Assert.False(result, "Expected TryParseReadonlyDictionary to return 'false' for empty dictionary"); }
public static void TestObjectTypeThrowsNotSupportedException() { var editorConfigStorageLocation = new EditorConfigStorageLocation(); Assert.Throws <NotSupportedException>(() => { editorConfigStorageLocation.TryParseReadonlyDictionary(new Dictionary <string, object>(), typeof(object), out var @object); }); }