public void TestBasicStalks() { var msgLines = PAssertLines( () => config.Assert( () => TimeSpan.FromMilliseconds(10.0).CompareTo(TimeSpan.FromMinutes(1.0)) > 0 )); Assert.Equal(@"TimeSpan.FromMilliseconds(10.0).CompareTo(TimeSpan.FromMinutes(1.0)) > 0 : assertion failed", msgLines[0]); var expectedMessage = @" TimeSpan.FromMilliseconds(10.0).CompareTo(TimeSpan.FromMinutes(1.0)) > 0 : assertion failed │ │ │ │ │ 00:01:00 │ -1 00:00:00.0100000 "; Assert.Equal(expectedMessage.Replace("\r", "").Trim(), string.Join("\n", msgLines)); }
public void PAssertWithCompile() { baseLineConfiguration.Assert(GetExpression()); }