Пример #1
0
        public void ToObject_Null()
        {
            // Arrange
            var  doubleNode = new JsonDoubleNode();
            Type type       = null;

            // Act
            doubleNode.ConvertTo(type);
        }
Пример #2
0
        private void ToObject_Parameterized <T>(double value, T expectedResult)
        {
            // Arrange
            var integerNode = new JsonDoubleNode(value);

            // Act
            T result = integerNode.ConvertTo <T>();

            // Assert
            Assert.AreEqual(expectedResult, result);
        }