mirror of
https://github.com/eliasstepanik/OSCADSharpDotnet7.git
synced 2026-01-11 21:48:34 +00:00
29 lines
746 B
C#
29 lines
746 B
C#
using System;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using OSCADSharp.Solids;
|
|
|
|
namespace OSCADSharp.UnitTests
|
|
{
|
|
[TestClass]
|
|
public class IntersectionTests
|
|
{
|
|
[TestMethod]
|
|
[ExpectedException(typeof(NotSupportedException))]
|
|
public void Intersection_PositionThrowsNotSupportedException()
|
|
{
|
|
var obj = new Sphere().Intersection(new Text3D("Sup"));
|
|
|
|
var pos = obj.Position();
|
|
}
|
|
|
|
[TestMethod]
|
|
[ExpectedException(typeof(NotSupportedException))]
|
|
public void Intersection_BoundsThrowsNotSupportedException()
|
|
{
|
|
var obj = new Sphere().Intersection(new Text3D("Sup"));
|
|
|
|
var pos = obj.Bounds();
|
|
}
|
|
}
|
|
}
|