Exemple #1
0
        public void ParseNotModelFile2_TryParse_ShouldThrowException()
        {
            var filePath = Path.Combine(GetTestDir(), "LinkXML1.txt");
            var result   = ModelFile.TryParse(filePath, out ModelFile modelFile);

            Assert.IsFalse(result);
        }
Exemple #2
0
        public void ParseModelFile2_TryParse_ShouldParse()
        {
            var filePath = Path.Combine(GetTestDir(), "ModelFileXML2.txt");
            var result   = ModelFile.TryParse(filePath, out ModelFile modelFile);

            Assert.IsTrue(result);
            Assert.AreEqual("IFCZIPModel.ifcZIP", modelFile.Name);
            Assert.AreEqual("files/Models/0eafb97a-621b-4565-9e2f-c78ab2c0c5f9.ifcZIP", modelFile.Location);
        }
Exemple #3
0
        public void ParseModelFile1_TryParse_ShouldParse()
        {
            var filePath = Path.Combine(GetTestDir(), "ModelFileXML1.txt");
            var result   = ModelFile.TryParse(filePath, out ModelFile modelFile);

            Assert.IsTrue(result);
            Assert.AreEqual("StpFile.stp", modelFile.Name);
            Assert.AreEqual("files/Models/845f3197-4722-4248-b160-c6451f18db52.stp", modelFile.Location);
        }