public void TestThrowOnRandomPointOnPerimeterWithBrokenRandom() { IRandom randomNumberGenerator = new BrokenRandom(); Plane3 plane = new Plane3(Vector3.Zero, Vector3.Normalize(Vector3.One)); Assert.Throws <InvalidOperationException>( delegate() { plane.RandomPointOnPerimeter(randomNumberGenerator); } ); }
public void TestThrowOnRandomPointOnPerimeterWithBrokenRandom() { IRandom randomNumberGenerator = new BrokenRandom(); Plane3 plane = new Plane3(Vector3.Zero, Vector3.Normalize(Vector3.One)); Assert.Throws<InvalidOperationException>( delegate() { plane.RandomPointOnPerimeter(randomNumberGenerator); } ); }