Beispiel #1
0
        public void Then_FieldOfView_Of_camera_Should_Equal_PI_Divided_By_2()
        {
            var expectedFieldOfView = Math.PI / 2;

            var actualFieldOfView = _cameraContext.FieldOfView;

            AssertDouble.ApproximateEquals(expectedFieldOfView, actualFieldOfView);
        }
Beispiel #2
0
        public void Then_Pixel_Size_Of_camera_Should_Equal(double expectedPixelSize)
        {
            var actualPixelSize = _cameraContext.Camera.PixelSize;

            AssertDouble.ApproximateEquals(expectedPixelSize, actualPixelSize);
        }
Beispiel #3
0
 public void Then_Green_Of_color_Should_Equal(double exprectedGreen)
 {
     AssertDouble.ApproximateEquals(exprectedGreen, _colorContext.Color1.Green);
 }
Beispiel #4
0
 public void Then_Blue_Of_color_Should_Equal(double exprectedBlue)
 {
     AssertDouble.ApproximateEquals(exprectedBlue, _colorContext.Color1.Blue);
 }
 public void Then_Specular_Of_material_Should_Equal(double expectedSpecular)
 {
     AssertDouble.ApproximateEquals(expectedSpecular, _materialsContext.Material.Specular);
 }
Beispiel #6
0
 public void Then_Red_Of_color_Should_Equal(double exprectedRed)
 {
     AssertDouble.ApproximateEquals(exprectedRed, _colorContext.Color1.Red);
 }
 public void Then_Ambient_Of_material_Should_Equal(double expectedAmbient)
 {
     AssertDouble.ApproximateEquals(expectedAmbient, _materialsContext.Material.Ambient);
 }
 public void Then_Diffuse_Of_Material_Should_Equal(double expectedDiffuse)
 {
     AssertDouble.ApproximateEquals(expectedDiffuse, _materialsContext.Material.Diffuse);
 }
 public void Then_Intensity_Should_Equal(float expectedIntensity)
 {
     AssertDouble.ApproximateEquals(expectedIntensity, _lightsContext.IntensityAt);
 }
Beispiel #10
0
 public void Then_reflectance_Should_Equal(float expectedReflectance)
 {
     AssertDouble.ApproximateEquals(expectedReflectance, _computationsContext.Reflectance);
 }
        public void Then_Magnitude_v_Should_Equal(double expectedMagnitude)
        {
            var actualMagnitude = _vectorsContext.Vector.Magnitude();

            AssertDouble.ApproximateEquals(expectedMagnitude, actualMagnitude);
        }
 public void Then_V_Of_intersectionN_Should_Equal(int indexOfIntersection, double expectedU)
 {
     AssertDouble.ApproximateEquals(expectedU, _intersectionsContext.Intersections[indexOfIntersection].V);
 }
 public void Then_Time_Of_intersection_Equals(Double expectedTime)
 {
     AssertDouble.ApproximateEquals(expectedTime, _intersectionsContext.Intersection.Time);
 }