mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 21:48:34 +00:00
28 lines
752 B
C#
28 lines
752 B
C#
using System;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OSCADSharp.Solids;
|
|
|
|
namespace OSCADSharp.UnitTests
|
|
{
|
|
[TestClass]
|
|
public class MinkowskiTests
|
|
{
|
|
[TestMethod]
|
|
[ExpectedException(typeof(NotSupportedException))]
|
|
public void Minkowski_PositionThrowsNotSupportedException()
|
|
{
|
|
var obj = new Cylinder().Minkowski(new Sphere()).Translate(0, 5, 5);
|
|
|
|
var pos = obj.Position();
|
|
}
|
|
|
|
[TestMethod]
|
|
[ExpectedException(typeof(NotSupportedException))]
|
|
public void Minkowski_BoundsThrowsNotSupportedException()
|
|
{
|
|
var obj = new Cylinder().Minkowski(new Sphere()).Translate(0, 5, 5);
|
|
obj.Bounds();
|
|
}
|
|
}
|
|
}
|