2016-03-18 00:08:38 -07:00

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();
}
}
}