-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Andronov Alexander #224
base: master
Are you sure you want to change the base?
Andronov Alexander #224
Conversation
[OneTimeSetUp] | ||
public void OneTimeSetup() | ||
{ | ||
var path = Path.Combine(projectDirectory, "FailureImages"); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
} | ||
} | ||
|
||
private void GenerateSizes() |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
if (rect1.IntersectsWith(rect2)) | ||
Assert.False(rect1.IntersectsWith(rect2)); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
{ | ||
var rect = layouter.PutNextRectangle(sizes[0]); | ||
|
||
Assert.True(rect.Width == sizes[0].Width && rect.Height == sizes[0].Height); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
{ | ||
public class CircularCloudLayouterTests | ||
{ | ||
private readonly string projectDirectory |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
||
namespace TagCloud.Tests | ||
{ | ||
public class CircularCloudLayouterTests |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
||
namespace TagCloud | ||
{ | ||
public class CircularCloudLayouter : ITagCloudLayouter |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/TagCloud/MathHelpers.cs
Outdated
|
||
namespace TagCloud | ||
{ | ||
public static class MathHelpers |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/TagCloud/CircularCloudLayouter.cs
Outdated
movedDx = dx == 0 ? false : OffsetIfDontCollide(ref rect, dx, 0); | ||
movedDy = dy == 0 ? false : OffsetIfDontCollide(ref rect, 0, dy); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
|
||
private void UpdateDirections() | ||
{ | ||
var directions = new List<Vector2>(); |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/TagCloud/CircularCloudLayouter.cs
Outdated
{ | ||
private int i; | ||
private List<RectangleF> rectangles = new List<RectangleF>(); | ||
private PointF center; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/TagCloud/CircularCloudLayouter.cs
Outdated
private PointF center; | ||
private RectangleF currentRectangle; | ||
private int segmentsCount = 2; | ||
private List<Vector2> directions; |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
} | ||
|
||
[Test] | ||
public void PutNextRectangle_PlaceManyRectangles_ShouldFitInCircleAroundCenter() |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
cs/TagCloud/TagCloudForDebug.cs
Outdated
|
||
namespace TagCloud | ||
{ | ||
public class TagCloudForDebug |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
@elizShtol