public void SetValue_Null() { var context = new DataTableDynamicObject(); context.SetValue(nameof(DynamicObject.DynamicObjectPrimaryKey), Guid.Empty); var val = context.GetValue(nameof(DynamicObject.DynamicObjectPrimaryKey)); Assert.Equal(Guid.Empty, val); }
public void GetValue_Exception() { var context = new DataTableDynamicObject(); Assert.Throws <InvalidOperationException>(() => context.GetValue(nameof(Foo.Name))); }