public async Task HaveTheSpanWithoutPath_Failed() { var actual = await LocationFactory.Create(); try { LocationAssert.HaveTheSpan( new LinePosition(999, 999), new LinePosition(999, 999), actual ); } catch (AssertFailedException e) { Assert.AreEqual( @"Assert.Fail failed. { - // It will be shown by 1-based index like: ""/path/to/unchecked.cs(1000,1000): Lorem Ipsum ..."") - StartLinePosition = new LinePosition(999, 999) + // It will be shown by 1-based index like: ""/path/to/unchecked.cs(9,1): Lorem Ipsum ..."") + StartLinePosition = new LinePosition(8, 0) - // It will be shown by 1-based index like: ""/path/to/unchecked.cs(1000,1000): Lorem Ipsum ..."") - EndLinePosition = new LinePosition(999, 999) + // It will be shown by 1-based index like: ""/path/to/unchecked.cs(9,6): Lorem Ipsum ..."") + EndLinePosition = new LinePosition(8, 5) } ", e.Message ); } }
public async Task HaveTheSpanWithoutPath_Success() { var actual = await LocationFactory.Create(); LocationAssert.HaveTheSpan( new LinePosition(8, 0), new LinePosition(8, 5), actual ); }