public void GetComputerNames_GetWindowsDomainOrWorkgroupNameFromUserName()
        {
            var result = SecurityIdentityForWindows.GetWindowsDomainOrWorkgroupName("");

            Assert.IsTrue(result == null || result == "WORKGROUP", "Cannot get Windows domain or workgroupname from username.");
        }
        public void GetComputerNames_GetWindowsDomainOrWorkgroupNameFromUserName_GivenDomainUser()
        {
            var result = SecurityIdentityForWindows.GetWindowsDomainOrWorkgroupName(@"WinDomain\IntegrationTester");

            Assert.AreEqual("WinDomain", result);
        }