Exemple #1
0
 public void ReadESoupis()
 {
     using (var file = File.OpenRead("Data/eSoupis.xml"))
     {
         var s = TeSoupis.Deserialize(file);
         Assert.IsNotNull(s);
     }
 }
Exemple #2
0
        public void ConvertEsoupisTest()
        {
            using var file = File.OpenRead("Data/eSoupis.xml");
            var s = TeSoupis.Deserialize(file);

            Assert.IsNotNull(s);

            using var model = Convertor.Convert(s);
            model.SaveAsIfc($"eSoupis.ifc");
            Assert.IsTrue(model.IsValid(out IEnumerable <ValidationResult> errs));
        }