src/sys/dotnet/fanx/test/Test.cs
/// <summary>
/// verify a and b are equal taking into account nulls.
/// </summary>
verify a and b are equal taking into account nulls.
verify a and b are equal taking into account nulls .
public void verify(Object a, Object b)
    {
      try
      {
        if (a == null) verify(b == null);
        else if (b == null) verify(false);
        else verify(a.Equals(b));
      }
      catch (Exception e)
      {
        if (e.Message != "Test failed") throw e;
        throw new Exception("Test failed " + a  + " != " + b);
      }
    }
public void verify ( Object a , Object b ) { try { if ( a == null ) verify ( b == null ) ; else if ( b == null ) verify ( false ) ; else verify ( a . Equals ( b ) ) ; } catch ( Exception e ) { if ( e . Message != " " ) throw e ; throw new Exception ( " " + a + " " + b ) ; } }
verify a and b are equal taking into account nulls.
verify a and b are equal taking into account nulls .
a
Object
b
Object