using System.Collections.Generic;
using KellermanSoftware.CompareNetObjects;
var expected =new Vector(new(){ { "key", 1 }});
var actual1 =new Vector(new(){ { "key", 1 }});
var actual2 =new Vector(new(){ { "key", 2 }});
void Compare(Vector actual, bool skipInvalidIndexers)
var result = new CompareLogic{Config = new(){ SkipInvalidIndexers = skipInvalidIndexers }}.Compare(expected, actual);
Assert.IsTrue(result.AreEqual, result.DifferencesString);
Assert.Throws<Exception>(() => Compare(actual1, false));
public Dictionary<string, double> Values{ get; }
public Vector(Dictionary<string, double> values) => Values = values;
public double this[string key] => Values[key];