~philip-peitsch/ngineer/trunk

« back to all changes in this revision

Viewing changes to UnitTests/BuilderTests/BuilderExtensionsTests.cs

  • Committer: Philip Peitsch
  • Date: 2010-11-25 11:43:27 UTC
  • Revision ID: philip.peitsch@gmail.com-20101125114327-yfnqrkhye88egszy
All exceptions now pass on the current session

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        public void ThrowWhenGeneratingObjectType_ThrowsIfObjectIsConstructed()
20
20
        {
21
21
            _builder.ThrowWhenGeneratingObjectType();
22
 
            var exception = Assert.Throws<BuilderException>(() => _builder.Build<ClassWithObject>());
 
22
            var wrappedException = Assert.Throws<WrappedBuilderException>(() => _builder.Build<ClassWithObject>());
 
23
            Assert.IsInstanceOf<BuilderException>(wrappedException.InnerException);
 
24
            var exception = (BuilderException)wrappedException.InnerException;
23
25
            Assert.IsTrue(exception.Message.Contains("ObjectMember"));
24
26
        }
25
27