public void op_GetDynamicMemberNames() { dynamic obj = new DynamicJson(); obj.Example = string.Empty; foreach (var actual in ((DynamicJson)obj).GetDynamicMemberNames()) { Assert.Equal("Example", actual); } }
public void example() { const string expected = "example"; dynamic obj = new DynamicJson(); obj.Example = expected; var actual = obj.Example; Assert.Equal(expected, actual); }
public void example_whenNotSet() { dynamic obj = new DynamicJson(); Assert.Null(obj.Example); }