Example #1
0
 def test_FindWithVsWhere(self):
     # Finds something with VSWhere
     ret, star_prod = locate_tools.FindWithVsWhere()
     self.assertEqual(ret, 0, "Return code should be zero")
     self.assertNotEqual(star_prod, None,
                         "We should have found this product")
     ret, bad_prod = locate_tools.FindWithVsWhere("bad_prod")
     self.assertEqual(ret, 0, "Return code should be zero")
     self.assertEqual(bad_prod, None,
                      "We should not have found this product")
Example #2
0
 def test_FindWithVsWhereUnsupported(self):
     ret, star_prod = locate_tools.FindWithVsWhere(vs_version="vs4096")
     self.assertEqual(ret, 2,
                      "Return code should be two as unsupported version")
Example #3
0
 def test_FindWithVsWhereVs2015(self):
     ret, star_prod = locate_tools.FindWithVsWhere(vs_version="vs2015")
     self.assertEqual(ret, 2,
                      "Return code should be 2 as Vs2015 isn't supported")
Example #4
0
 def test_FindwithVsWhereVs2022(self):
     ret, star_prod = locate_tools.FindWithVsWhere(vs_version="vs2022")
     self.assertEqual(ret, 0, "Return code should be zero")