コード例 #1
0
        public void XCoordinateCanBeDecreased()
        {
            var coordinate = new Coordinate();

            var newCoordinate = coordinate.AddX(-1);

            Assert.Equal(-1, newCoordinate.X);
        }
コード例 #2
0
        public void OldCoordinateRemainsUnaffectedAfterChange()
        {
            var coordinate = new Coordinate();

            coordinate.AddX(1);

            Assert.Equal(0, coordinate.X);
            Assert.Equal(0, coordinate.Y);
        }