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