public static void TextReturnsValueSpecifiedInConstructor() { var target = new TestableCaptureNode(0, "template"); Assert.Equal("template", target.Text); }
public static void SpanStartsAtPositionSpecifiedInConstructor() { var target = new TestableCaptureNode(42, "template"); Assert.Equal(42, target.Span.Start); }
public static void SpanLengthEqualsToLengthOfTextSpecifiedInConstructor() { var target = new TestableCaptureNode(0, "template"); Assert.Equal("template".Length, target.Span.Length); }
public static void ConstructorSetsPositionProperty() { var target = new TestableCaptureNode(0, string.Empty, new Position(4, 2)); Assert.Equal(new Position(4, 2), target.Position); }