public void IntegerTest() { int value = 1337; NewtonsoftInteropTests.VerifyNewtonsoftInterop <int>(value); }
public void FalseTest() { bool value = false; NewtonsoftInteropTests.VerifyNewtonsoftInterop <bool>(value); }
public void NullTest() { object value = null; NewtonsoftInteropTests.VerifyNewtonsoftInterop <object>(value); }
private static void VerifyBinaryWriter <T>(T expectedDeserializedValue) { NewtonsoftInteropTests.VerifyWriter <T>(JsonSerializationFormat.Binary, expectedDeserializedValue); }
public void TrueTest() { bool value = true; NewtonsoftInteropTests.VerifyNewtonsoftInterop <bool>(value); }
public void StringTest() { string value = "Hello World"; NewtonsoftInteropTests.VerifyNewtonsoftInterop <string>(value); }
public void ObjectWithAttributesTest() { ObjectWithAttributes objectWithAttributes = new ObjectWithAttributes("Brandon", 42, new DateTime(1995, 04, 16), Day.Tue); NewtonsoftInteropTests.VerifyNewtonsoftInterop <ObjectWithAttributes>(objectWithAttributes); }
public void ObjectArrayTest() { object[] value = { new object(), new object() }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <object[]>(value); }
public void NestedArrayTest() { object[,] value = { { }, { } }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <object[, ]>(value); }
public void BooleanArrayTest() { bool[] value = { true, false }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <bool[]>(value); }
public void NullArrayTest() { object[] value = { null, null, null }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <object[]>(value); }
public void NumberArrayTest() { double[] value = { 15, 22, 0.1 }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <double[]>(value); }
public void IntArrayTest() { int[] value = { -2, -1, 0, 1, 2 }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <int[]>(value); }
public void EmptyArrayTest() { object[] value = { }; NewtonsoftInteropTests.VerifyNewtonsoftInterop <object[]>(value); }
public void DoubleTest() { double value = 1337.0; NewtonsoftInteropTests.VerifyNewtonsoftInterop <double>(value); }
public void EmptyObjectTest() { object value = new object(); NewtonsoftInteropTests.VerifyNewtonsoftInterop <object>(value); }
public void NegativeNumberTest() { double value = -1337.0; NewtonsoftInteropTests.VerifyNewtonsoftInterop <double>(value); }
public void EmptyStringTest() { string value = ""; NewtonsoftInteropTests.VerifyNewtonsoftInterop <string>(value); }