mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 13:38:33 +00:00
31 lines
723 B
C#
31 lines
723 B
C#
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OSCADSharp.Solids;
|
|
using OSCADSharp.Spatial;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OSCADSharp.UnitTests
|
|
{
|
|
[TestClass]
|
|
public class Text3DTests
|
|
{
|
|
[TestMethod]
|
|
public void Text_PositionIsCentered()
|
|
{
|
|
var text = new Text3D("Bom chicka bow wow");
|
|
|
|
Assert.AreEqual(new Vector3(), text.Position());
|
|
}
|
|
|
|
[TestMethod]
|
|
[ExpectedException(typeof(NotSupportedException))]
|
|
public void Text_BoundsNotSupported()
|
|
{
|
|
var obj = new Text3D("BBBB", 16).Bounds();
|
|
}
|
|
}
|
|
}
|