Beispiel #1
0
        public void ProcessLineThrowWithBadAction()
        {
            var _tgcObjLoader = new TgcObjLoader();
            var line          = "badAction Blender v2.79 (sub 0) OBJ File: ''";

            Assert.That(() => { _tgcObjLoader.ProccesLine(line); }, Throws.InvalidOperationException);
        }
Beispiel #2
0
        public void ProcessLineReturnWithSpaceBlanck()
        {
            var _tgcObjLoader = new TgcObjLoader();
            var line          = "        ";

            _tgcObjLoader.ProccesLine(line);
            Assert.IsTrue(_tgcObjLoader.ObjMeshContainer.ListObjMesh.Count == 0);
        }
Beispiel #3
0
        public void ProcessLineReturnWithFirstCaracterHastag()
        {
            var _tgcObjLoader = new TgcObjLoader();
            var line          = "# Blender v2.79 (sub 0) OBJ File: ''";

            _tgcObjLoader.ProccesLine(line);
            Assert.IsTrue(_tgcObjLoader.ObjMeshContainer.ListObjMesh.Count == 0);
        }
Beispiel #4
0
        public void ProccesLineNewObjet()
        {
            var _tgcObjLoader = new TgcObjLoader();
            var line          = "o Cube";

            _tgcObjLoader.ProccesLine(line);
            Assert.True(_tgcObjLoader.ObjMeshContainer.ListObjMesh.First().Name.Equals("Cube"));
        }