Example #1
0
        public void TestThrowOnRandomPointOnPerimeterWithBrokenRandom()
        {
            IRandom randomNumberGenerator = new BrokenRandom();

            Plane3 plane = new Plane3(Vector3.Zero, Vector3.Normalize(Vector3.One));

            Assert.Throws <InvalidOperationException>(
                delegate() { plane.RandomPointOnPerimeter(randomNumberGenerator); }
                );
        }
Example #2
0
    public void TestThrowOnRandomPointOnPerimeterWithBrokenRandom() {
      IRandom randomNumberGenerator = new BrokenRandom();

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