public void ExcludePropertyThrowsWhenStringIsNull() { IExampleWrapper <UserEntity> wrapper = new ExampleWrapper <UserEntity>(Example.Create(new UserEntity())); string s = null; Assert.That(() => wrapper.ExcludeProperty(s), Throws.ArgumentException); }
public void ExcludePropertyThrowsWhenExpressionIsNull() { IExampleWrapper <UserEntity> wrapper = new ExampleWrapper <UserEntity>(Example.Create(new UserEntity())); Expression <Func <UserEntity, object> > e = null; Assert.That(() => wrapper.ExcludeProperty(e), Throws.InstanceOf <ArgumentNullException>()); }
public void CanConstruct() { IExampleWrapper <UserEntity> wrapper = new ExampleWrapper <UserEntity>(Example.Create(new UserEntity())); Assert.That(wrapper, Is.Not.Null); }