Ejemplo n.º 1
0
        public void MeshVisualConstructor()
        {
            tlog.Debug(tag, $"MeshVisualConstructor START");

            var testingTarget = new MeshVisual();

            Assert.IsNotNull(testingTarget, "Can't create success object MeshVisual");
            Assert.IsInstanceOf <MeshVisual>(testingTarget, "Should be an instance of MeshVisual type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"MeshVisualConstructor END (OK)");
        }
Ejemplo n.º 2
0
        public void MeshVisualUseSoftNormals()
        {
            tlog.Debug(tag, $"MeshVisualUseSoftNormals START");

            var testingTarget = new MeshVisual();

            Assert.IsNotNull(testingTarget, "Can't create success object MeshVisual");
            Assert.IsInstanceOf <MeshVisual>(testingTarget, "Should be an instance of MeshVisual type.");

            testingTarget.UseSoftNormals = true;
            Assert.AreEqual(true, testingTarget.UseSoftNormals, "Retrieved UseSoftNormals should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"MeshVisualUseSoftNormals END (OK)");
        }
Ejemplo n.º 3
0
        public void MeshVisualShadingMode()
        {
            tlog.Debug(tag, $"MeshVisualShadingMode START");

            var testingTarget = new MeshVisual();

            Assert.IsNotNull(testingTarget, "Can't create success object MeshVisual");
            Assert.IsInstanceOf <MeshVisual>(testingTarget, "Should be an instance of MeshVisual type.");

            testingTarget.ShadingMode = MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting;
            Assert.AreEqual(MeshVisualShadingModeValue.TexturedWithDetailedSpecularLighting, testingTarget.ShadingMode, "Retrieved ShadingMode should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"MeshVisualShadingMode END (OK)");
        }
Ejemplo n.º 4
0
        public void MeshVisualMaterialtURL()
        {
            tlog.Debug(tag, $"MeshVisualMaterialtURL START");

            var testingTarget = new MeshVisual();

            Assert.IsNotNull(testingTarget, "Can't create success object MeshVisual");
            Assert.IsInstanceOf <MeshVisual>(testingTarget, "Should be an instance of MeshVisual type.");

            string url = "MaterialtURL";

            testingTarget.MaterialtURL = url;
            Assert.AreEqual(url, testingTarget.MaterialtURL, "Retrieved MaterialtURL should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"MeshVisualMaterialtURL END (OK)");
        }
Ejemplo n.º 5
0
        public void MeshVisualTexturesPath()
        {
            tlog.Debug(tag, $"MeshVisualTexturesPath START");

            var testingTarget = new MeshVisual();

            Assert.IsNotNull(testingTarget, "Can't create success object MeshVisual");
            Assert.IsInstanceOf <MeshVisual>(testingTarget, "Should be an instance of MeshVisual type.");

            string url = "TexturesPath";

            testingTarget.TexturesPath = url;
            Assert.AreEqual(url, testingTarget.TexturesPath, "Retrieved TexturesPath should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"MeshVisualTexturesPath END (OK)");
        }
Ejemplo n.º 6
0
        public void MeshVisualLightPosition()
        {
            tlog.Debug(tag, $"MeshVisualLightPosition START");

            var testingTarget = new MeshVisual();

            Assert.IsNotNull(testingTarget, "Can't create success object MeshVisual");
            Assert.IsInstanceOf <MeshVisual>(testingTarget, "Should be an instance of MeshVisual type.");

            using (Vector3 vector3 = new Vector3(1.0f, 1.0f, 1.0f))
            {
                testingTarget.LightPosition = vector3;
                Assert.AreEqual(1.0f, testingTarget.LightPosition.X, "Retrieved LightPosition.X should be equal to set value");
                Assert.AreEqual(1.0f, testingTarget.LightPosition.Y, "Retrieved LightPosition.Y should be equal to set value");
                Assert.AreEqual(1.0f, testingTarget.LightPosition.Z, "Retrieved LightPosition.Z should be equal to set value");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"MeshVisualLightPosition END (OK)");
        }