public void TestGazeData() { GazeData gd = new GazeData(); gd.LeftEye.PupilSize = 11.1d; gd.RightEye.PupilCenterCoordinates = new Point2D(800.13f, 20.325f); gd.State = 1; Assert.IsNotNull(gd.State); Assert.IsTrue(!gd.HasRawGazeCoordinates()); String json = JsonConvert.SerializeObject(gd); GazeData gd2 = JsonConvert.DeserializeObject <GazeData>(json); Assert.AreEqual(gd, gd2); Assert.AreEqual(gd.GetHashCode(), gd2.GetHashCode()); }