public void Return_Null_For_Null_Arg()
        {
            Type nullType = null;

            var result = CreateSWInstance.Create(nullType);

            Assert.AreEqual(null, result);
        }
Exemplo n.º 2
0
        public void Return_Null_For_File_Not_Exist()
        {
            var       nonFile = "abse.txt";
            ISldWorks swApp   = CreateSWInstance.Create(
                SWType.GetFromProgID("SolidWorks.Application.24")
                );

            var result = SWDocSpecification.GetDocumentSpecification(
                swApp, nonFile);

            Assert.AreEqual(null, result);
        }
Exemplo n.º 3
0
        public void Return_Null_For_Empty_String_Path_Arg()
        {
            var       emptyPath = "";
            ISldWorks swApp     = CreateSWInstance.Create(
                SWType.GetFromProgID("SolidWorks.Application.24")
                );

            var result = SWDocSpecification.GetDocumentSpecification(
                swApp, emptyPath);

            Assert.AreEqual(null, result);
        }