Beispiel #1
0
 public void GetColumns()
 {
     Assert.That(
         () => _unsupportedStorageProperty.GetColumns(),
         Throws.TypeOf <NotSupportedException> ()
         .With.Message.EqualTo("This operation is not supported because the storage property is invalid. Reason: Message")
         .And.InnerException.SameAs(_innerException));
 }
Beispiel #2
0
        public void Initialization_WithNullInnerException()
        {
            var columnDefinition = new UnsupportedStoragePropertyDefinition(typeof(int), "Message", null);

            Assert.That(columnDefinition.InnerException, Is.Null);
            Assert.That(
                () => columnDefinition.GetColumns(),
                Throws.TypeOf <NotSupportedException>().With.InnerException.Null);
        }