public void ToObject_Null() { // Arrange var doubleNode = new JsonDoubleNode(); Type type = null; // Act doubleNode.ConvertTo(type); }
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); }