public void Create_ComputerName_Localhost() { using (CimSession cimSession = CimSession.Create("localhost")) { Assert.NotNull(cimSession, "cimSession should not be null"); Assert.Equal("localhost", cimSession.ComputerName, "cimSession.ComputerName should not be the same as the value passed to Create method"); Assert.True(cimSession.ToString().Contains("localhost"), "cimSession.ToString should contain computer name"); } }