This project is read-only.


Can you make a release build?


Can you package up a release build so that your stack trace information doesn't show when an assertion is thrown. this is what I see when I use Satisfy with a null value:
    [Test]public void SatisfyBug()
        EventArgs e = null;

        e.Satisfy(x => x.ToString() == "bob");

Test 'MyTests.Test' failed: System.NullReferenceException : Object reference not set to an instance of an object.
at lambda_method(ExecutionScope , EventArgs )
at SharpTestsEx.Assertions.AndAssertion`1.Assert(TA actual, String customMessage)
at SharpTestsEx.Assertions.SatisfyAssertion`1.Assert(TA actual, String customMessage)
at SharpTestsEx.Extensions.Satisfy[T](T actual, String title, Expression`1 assertion)
at SharpTestsEx.Extensions.Satisfy[T](T actual, Expression`1 assertion)
MyTests.cs(153,0): at MyTests.Test()
Closed Oct 23, 2010 at 3:07 PM by fabiomaulo
Not an issue. That is C# behavior when you call a method of a null reference.


powerdude wrote Oct 23, 2010 at 7:40 PM

That's true for the lamba line, but not the SharpTests lines. If you made a release build, those lines would not show. a Developer shouldn't have to see the stack trace with your methods if they don't want to.

powerdude wrote Oct 23, 2010 at 7:46 PM

never mind, it seems i'm mistaken.