public void Observability_is_acurate(Type dynamicType, ObjectObservability expected) { var @object = (IDictionary <string, object>)Activator.CreateInstance(dynamicType); var dictionaryPropertyAccessor = new DictionaryPropertyAccessor <object>(@object); dictionaryPropertyAccessor.Observability.Should().Be(expected); }
public IJsCsGlue Convert(IGlueFactory factory, object @object) { var propertyAcessor = DictionaryPropertyAccessor.FromStringDictionary(@object, _TargetType); return(Convert(factory, @object, propertyAcessor)); }
public DictionaryPropertyAccessorTest() { _DictionaryPropertyAccessor = new DictionaryPropertyAccessor <int>(_Dictionary); }
public void FromStringDictionary_returns_DictionaryPropertyAccessor() { var result = DictionaryPropertyAccessor.FromStringDictionary(_Dictionary, typeof(int)); result.Should().BeAssignableTo <DictionaryPropertyAccessor <int> >(); }