Esempio n. 1
0
        public void ConvertToValidJson()
        {
            var converter = new TabResultConverter();
            var obj       = converter.Convert(new TabResult("XYZ", new{ Any = "Object" }));

            var result = obj as IDictionary <string, object>;

            Assert.NotNull(result);
            Assert.True(result.ContainsKey("data"));
            Assert.True(result.ContainsKey("name"));
        }
        public void ConvertToValidJson()
        {
            var converter = new TabResultConverter();
            var obj = converter.Convert(new TabResult("XYZ", new{Any="Object"}));

            var result = obj as IDictionary<string, object>;

            Assert.NotNull(result);
            Assert.True(result.ContainsKey("data"));
            Assert.True(result.ContainsKey("name"));
        }