Browse Source

Scaling Vector is not commutative

pull/5758/head
Andrey Ermilkin 5 years ago
parent
commit
bcca8d8616
  1. 10
      tests/Avalonia.Visuals.UnitTests/VectorTests.cs

10
tests/Avalonia.Visuals.UnitTests/VectorTests.cs

@ -105,5 +105,15 @@ namespace Avalonia.Visuals.UnitTests
Assert.Equal(expected, Vector.Multiply(vector, 2));
}
[Fact]
public void Scale_Vector_Should_Be_Commutative()
{
var vector = new Vector(10, 2);
var expected = vector * 2;
Assert.Equal(expected, 2 * vector);
}
}
}

Loading…
Cancel
Save