public void WhenSerializeWithMoreDatatypes_GetSerialiedJsonString() { // Arrange var jsonSerializer = new JsonSerializer(); var jsonMoreDataTypes = new JsonMoreDataTypes { BoolProperty = true, ByteProperty = 1, SByteProperty = 2, CharProperty = 'K', DoubleProperty = 12.52, FloatProperty = 12.52F, IntProperty = 15789, UIntProperty = 1234, LongProperty = 152, ULongProperty = 12345, ShortProperty = 123, UShortProperty = 555, StringProperty = "This is a string" }; // Act var result = jsonSerializer.Serialize(jsonMoreDataTypes); // Assert Assert.AreEqual("{\"boolProperty\": true,\"byteProperty\": 1,\"sByteProperty\": 2,\"charProperty\": \"K\",\"doubleProperty\": 12.52,\"floatProperty\": 12.5200005,\"intProperty\": 15789,\"uIntProperty\": 1234,\"longProperty\": 152,\"uLongProperty\": 12345,\"shortProperty\": 123,\"uShortProperty\": 555,\"stringProperty\": \"This is a string\"}", result); }