コード例 #1
0
        public void ExcludePropertyThrowsWhenStringIsNull()
        {
            IExampleWrapper <UserEntity> wrapper = new ExampleWrapper <UserEntity>(Example.Create(new UserEntity()));

            string s = null;

            Assert.That(() => wrapper.ExcludeProperty(s), Throws.ArgumentException);
        }
コード例 #2
0
        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>());
        }
コード例 #3
0
        public void CanConstruct()
        {
            IExampleWrapper <UserEntity> wrapper = new ExampleWrapper <UserEntity>(Example.Create(new UserEntity()));

            Assert.That(wrapper, Is.Not.Null);
        }