public void Should_set_startingPoint_and_endingPoint_in_constructor() { var startingPoint = new Point(2, 2); var endingPoint = new Point(5, 5); var sut = new Rectangle(startingPoint, endingPoint); Assert.AreEqual(startingPoint, sut.StartingPoint); Assert.AreEqual(endingPoint, sut.EndingPoint); }
protected override void Given() { _subjectUnderTest = new Rectangle(new Point(0, 10), new Point(10, 0)); _innerPoint = new Point(4, 4); base.Given(); }
public void Should_not_be_equal_if_startingPoints_are_different() { var anNotEqualRectangle = new Rectangle(new Point(1, 2), new Point(4, 4)); Assert.AreNotEqual(anNotEqualRectangle, _sut); }
public void Should_be_equal_if_startingPoint_and_endingPoint_are_equal() { var anEqualRectangle = new Rectangle(new Point(1, 1), new Point(4, 4)); Assert.AreEqual(anEqualRectangle, _sut); }