| | 1 | | using DCL.Components; |
| | 2 | | using NUnit.Framework; |
| | 3 | | using TMPro; |
| | 4 | |
|
| | 5 | | namespace Tests |
| | 6 | | { |
| | 7 | | public class TextShapeHelperTests |
| | 8 | | { |
| | 9 | | [Test] |
| | 10 | | public void TestTextAlignment() |
| | 11 | | { |
| 1 | 12 | | Assert.AreEqual(TextAlignmentOptions.BottomLeft, TextShape.GetAlignment("bottom", "left")); |
| 1 | 13 | | Assert.AreEqual(TextAlignmentOptions.BottomRight, TextShape.GetAlignment("Bottom", "RIght")); |
| 1 | 14 | | Assert.AreEqual(TextAlignmentOptions.Center, TextShape.GetAlignment("Center", "center")); |
| 1 | 15 | | Assert.AreEqual(TextAlignmentOptions.TopLeft, TextShape.GetAlignment("top", "Left")); |
| 1 | 16 | | Assert.AreEqual(TextAlignmentOptions.TopRight, TextShape.GetAlignment("top", "right")); |
| 1 | 17 | | Assert.AreEqual(TextAlignmentOptions.Top, TextShape.GetAlignment("top", "center")); |
| 1 | 18 | | Assert.AreEqual(TextAlignmentOptions.Right, TextShape.GetAlignment("center", "right")); |
| 1 | 19 | | Assert.AreEqual(TextAlignmentOptions.Bottom, TextShape.GetAlignment("Bottom", "cEnter")); |
| 1 | 20 | | Assert.AreEqual(TextAlignmentOptions.Left, TextShape.GetAlignment("center", "left")); |
| 1 | 21 | | } |
| | 22 | | } |
| | 23 | | } |