public void GetComputerName_NetBIOS_Equal()
        {
            // Arrange
            var netBIOSName = new EasClientDeviceInformation().FriendlyName;

            // Act
            string dmComputerName = _compNameBridge.GetName();

            // Assert
            Assert.AreEqual(netBIOSName, dmComputerName, true);
        }
Example #2
0
 public void GetComputerName_ExceptionThrown()
 {
     using (ComputerNameBridge dmClient = new ComputerNameBridge())
     {
         dmClient.GetName();
     }
 }
 private async void UpdateComputerNameText()
 {
     await base.RunAPIInBackgroundWithManualStatus(() => {
         return(_compNameBridge.GetName());
     }, ComputerNameViewModel);
 }