public void ToGuidTest() { Guid expected = Guid.NewGuid(); var content = new Dictionary <string, object> { { "key", expected.ToString() } }; var target = new JsonContainer(content); string key = "key"; Guid actual; actual = target.ToGuid(key); Assert.AreEqual(expected, actual); }