예제 #1
0
        public void ModelViewConstructorWith3Urls()
        {
            tlog.Debug(tag, $"ModelViewConstructorWith3Urls START");

            var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);

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

            testingTarget.Dispose();

            tlog.Debug(tag, $"ModelViewConstructorWith3Urls END (OK)");
        }
예제 #2
0
        public void ModelViewLightPosition()
        {
            tlog.Debug(tag, $"ModelViewLightPosition START");

            var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);

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

            tlog.Debug(tag, testingTarget.LightPosition.ToString());
            testingTarget.LightPosition = new Vector3(0.3f, 0.1f, 0.8f);
            tlog.Debug(tag, testingTarget.LightPosition.ToString());

            testingTarget.Dispose();
            tlog.Debug(tag, $"ModelViewLightPosition END (OK)");
        }
예제 #3
0
        public void ModelViewIlluminationType()
        {
            tlog.Debug(tag, $"ModelViewIlluminationType START");

            var testingTarget = new ModelView(objUrl, mtlUrl, imageUrl);

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

            tlog.Debug(tag, testingTarget.IlluminationType.ToString());
            testingTarget.IlluminationType = 2;
            tlog.Debug(tag, testingTarget.IlluminationType.ToString());

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