public void Should_set_startingPoint_and_endingPoint_in_constructor() { var startingPoint = new Point(2, 2); var endingPoint = new Point(5, 5); var sut = new Line(startingPoint, endingPoint); Assert.AreEqual(startingPoint, sut.StartingPoint); Assert.AreEqual(endingPoint, sut.EndingPoint); }
protected override void Given() { _innerLine = new Line(new Point(1, 0), new Point(8, 0)); _subjectUnderTest = new Line(new Point(0, 0), new Point(10, 0)); base.Given(); }
public void Should_be_equal_if_startingPoint_and_endingPoint_are_equal() { var anEqualLine = new Line(new Point(1, 1), new Point(4, 4)); Assert.AreEqual(anEqualLine, _sut); }
public void Should_not_be_equal_if_startingPoints_are_different() { var anNotEqualLine = new Line(new Point(1, 2), new Point(4, 4)); Assert.AreNotEqual(anNotEqualLine, _sut); }
protected override void Given() { _notContained = new Line(new Point(0, 0), new Point(8, 1)); _subjectUnderTest = new Line(new Point(0, 0), new Point(10, 0)); base.Given(); base.Given(); }