public void WithConstructor_NotANewExpressionSupplied_Throws() { { var myClass = new MyClassWithConstructor(1, 2); Assert.Throws <ArgumentException>(() => myClassWithConstructorBuilder.WithConstructor(() => myClass)); } }
public void WithConstructor_NotANewExpressionSupplied_Throws() { using (mocks.Record()) {} using (mocks.Playback()) { // TODO FIX #if !SILVERLIGHT var myClass = new MyClassWithConstructor(1, 2); Assert.Throws <ArgumentException>(() => myClassWithConstructorBuilder.WithConstructor(() => myClass)); #endif } }