public void ParseNotModelFile2_TryParse_ShouldThrowException() { var filePath = Path.Combine(GetTestDir(), "LinkXML1.txt"); var result = ModelFile.TryParse(filePath, out ModelFile modelFile); Assert.IsFalse(result); }
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); }
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); }