44// </copyright>
55//----------------------------------------------------------------------------------------------
66
7- using Microsoft . VisualStudio . TestTools . UnitTesting ;
87using System . Linq ;
98using System . Net ;
109using System . Net . Http ;
1110using System . Threading . Tasks ;
11+ using Microsoft . VisualStudio . TestTools . UnitTesting ;
1212using static Microsoft . Tools . WindowsDevicePortal . DevicePortal ;
1313
1414namespace Microsoft . Tools . WindowsDevicePortal . Tests
@@ -307,7 +307,6 @@ public void GetUpdateInstallTime_IoT()
307307
308308 // Check some known things about this response.
309309 Assert . AreEqual ( 0 , installTime . RebootScheduled ) ;
310-
311310 }
312311
313312 /// <summary>
@@ -396,21 +395,20 @@ public void SetDeviceNameTest_IoT()
396395 Assert . AreEqual ( TaskStatus . RanToCompletion , setIoTDeviceName . Status ) ;
397396 }
398397
399-
400398 /// <summary>
401399 /// Simple test to set SoftAp Settings
402400 /// </summary>
403401 [ TestMethod ]
404402 public void SetSoftApSettingsTest_IoT ( )
405403 {
406- string SoftApEnabled = "true" ;
407- string SoftApSsid = "SoftAPSsid" ;
408- string SoftApPassword = "p@ssw0rd" ;
404+ string softApEnabled = "true" ;
405+ string softApSsid = "SoftAPSsid" ;
406+ string softApPassword = "p@ssw0rd" ;
409407
410408 HttpResponseMessage response = new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
411409 TestHelpers . MockHttpResponder . AddMockResponse ( DevicePortal . SoftAPSettingsApi , response , HttpMethods . Post ) ;
412410
413- Task setSoftApSettings = TestHelpers . Portal . SetSoftApSettingsAsync ( SoftApEnabled , SoftApSsid , SoftApPassword ) ;
411+ Task setSoftApSettings = TestHelpers . Portal . SetSoftApSettingsAsync ( softApEnabled , softApSsid , softApPassword ) ;
414412 setSoftApSettings . Wait ( ) ;
415413
416414 Assert . AreEqual ( TaskStatus . RanToCompletion , setSoftApSettings . Status ) ;
@@ -495,7 +493,7 @@ public void SetControllersDriversTest_IoT()
495493 setIoTControllersDrivers . Wait ( ) ;
496494
497495 Assert . AreEqual ( TaskStatus . RanToCompletion , setIoTControllersDrivers . Status ) ;
498- Assert . AreEqual ( requestReboot , setIoTControllersDrivers . Result . RequestReboot ) ;
496+ Assert . AreEqual ( requestReboot , setIoTControllersDrivers . Result . RequestReboot ) ;
499497 }
500498
501499 /// <summary>
@@ -694,10 +692,10 @@ public void SetRenderVolumeTest_IoT()
694692 HttpResponseMessage response = new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
695693 TestHelpers . MockHttpResponder . AddMockResponse ( DevicePortal . SetRenderVolumeApi , response , HttpMethods . Post ) ;
696694
697- Task RenderVolume = TestHelpers . Portal . SetRenderVolumeAsync ( renderVolume ) ;
698- RenderVolume . Wait ( ) ;
695+ Task renderVolumeTask = TestHelpers . Portal . SetRenderVolumeAsync ( renderVolume ) ;
696+ renderVolumeTask . Wait ( ) ;
699697
700- Assert . AreEqual ( TaskStatus . RanToCompletion , RenderVolume . Status ) ;
698+ Assert . AreEqual ( TaskStatus . RanToCompletion , renderVolumeTask . Status ) ;
701699 }
702700
703701 /// <summary>
@@ -711,10 +709,10 @@ public void SetCaptureVolumeTest_IoT()
711709 HttpResponseMessage response = new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
712710 TestHelpers . MockHttpResponder . AddMockResponse ( DevicePortal . SetCaptureVolumeApi , response , HttpMethods . Post ) ;
713711
714- Task CaptureVolume = TestHelpers . Portal . SetCaptureVolumeAsync ( captureVolume ) ;
715- CaptureVolume . Wait ( ) ;
712+ Task captureVolumeTask = TestHelpers . Portal . SetCaptureVolumeAsync ( captureVolume ) ;
713+ captureVolumeTask . Wait ( ) ;
716714
717- Assert . AreEqual ( TaskStatus . RanToCompletion , CaptureVolume . Status ) ;
715+ Assert . AreEqual ( TaskStatus . RanToCompletion , captureVolumeTask . Status ) ;
718716 }
719717
720718 /// <summary>
@@ -729,10 +727,10 @@ public void IcSharingStartTest_IoT()
729727 HttpResponseMessage response = new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
730728 TestHelpers . MockHttpResponder . AddMockResponse ( DevicePortal . IcSharingApi , response , HttpMethods . Post ) ;
731729
732- Task IcsStart = TestHelpers . Portal . IcSharingStartAsync ( privateInterfaceIndex , publicInterfaceIndex ) ;
733- IcsStart . Wait ( ) ;
730+ Task icsStart = TestHelpers . Portal . IcSharingStartAsync ( privateInterfaceIndex , publicInterfaceIndex ) ;
731+ icsStart . Wait ( ) ;
734732
735- Assert . AreEqual ( TaskStatus . RanToCompletion , IcsStart . Status ) ;
733+ Assert . AreEqual ( TaskStatus . RanToCompletion , icsStart . Status ) ;
736734 }
737735
738736 /// <summary>
@@ -747,10 +745,10 @@ public void IcSharingStopTest_IoT()
747745 HttpResponseMessage response = new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
748746 TestHelpers . MockHttpResponder . AddMockResponse ( DevicePortal . IcSharingApi , response , HttpMethods . Delete ) ;
749747
750- Task IcsStop = TestHelpers . Portal . IcSharingStopAsync ( privateInterfaceIndex , publicInterfaceIndex ) ;
751- IcsStop . Wait ( ) ;
748+ Task icsStop = TestHelpers . Portal . IcSharingStopAsync ( privateInterfaceIndex , publicInterfaceIndex ) ;
749+ icsStop . Wait ( ) ;
752750
753- Assert . AreEqual ( TaskStatus . RanToCompletion , IcsStop . Status ) ;
751+ Assert . AreEqual ( TaskStatus . RanToCompletion , icsStop . Status ) ;
754752 }
755753
756754 /// <summary>
@@ -966,8 +964,8 @@ public void SetTpmAcpiTablesTest_IoT()
966964 public void SetTpmLogicalDeviceSettingsTest_IoT ( )
967965 {
968966 int logicalDeviceId = 1 ;
969- string azureUri = "" ;
970- string azureKey = "" ;
967+ string azureUri = string . Empty ;
968+ string azureKey = string . Empty ;
971969
972970 HttpResponseMessage response = new HttpResponseMessage ( HttpStatusCode . NoContent ) ;
973971 TestHelpers . MockHttpResponder . AddMockResponse ( string . Format ( "{0}/{1}" , DevicePortal . TpmSettingsApi , logicalDeviceId ) , response , HttpMethods . Post ) ;
@@ -1005,7 +1003,7 @@ public void GetTpmAzureTokenInfo_IoT()
10051003 string validity = "18000" ;
10061004
10071005 TestHelpers . MockHttpResponder . AddMockResponse (
1008- string . Format ( "{0}/{1}" , TpmAzureTokenApi , logicalDeviceId ) ,
1006+ string . Format ( "{0}/{1}" , DevicePortal . TpmAzureTokenApi , logicalDeviceId ) ,
10091007 this . PlatformType ,
10101008 this . FriendlyOperatingSystemVersion ,
10111009 HttpMethods . Get ) ;
0 commit comments