public void Test_Etc() { bool testresults = true; try { NodeConfig config = new NodeConfig(); Etc etcobj = new Etc(config); if (etcobj.GetAllUsers().Count() > 0) { EtcUser user = etcobj.GetAllUsers().FirstOrDefault(); if (etcobj.GetPwanam(user.Name) == null) { testresults = false; } } } catch { testresults = false; } Assert.AreEqual(true, testresults); }