Exemplo n.º 1
0
        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));
        }
Exemplo n.º 3
0
 public DictionaryPropertyAccessorTest()
 {
     _DictionaryPropertyAccessor = new DictionaryPropertyAccessor <int>(_Dictionary);
 }
Exemplo n.º 4
0
        public void FromStringDictionary_returns_DictionaryPropertyAccessor()
        {
            var result = DictionaryPropertyAccessor.FromStringDictionary(_Dictionary, typeof(int));

            result.Should().BeAssignableTo <DictionaryPropertyAccessor <int> >();
        }