public void ReturnsTestObjectIfValueIsATestObject() { var value = ValueRetrieval.GetObject <TestObject>("{\"On\": \"true\"}"); Assert.That(value.On, Is.EqualTo(true)); }
public void ReturnsNullIfValueIsasdf() { var value = ValueRetrieval.GetObject <TestObject>("asdf"); Assert.That(value, Is.EqualTo(null)); }