public void SetWrapperSdk() { string wrapperName = $"expectedName {Guid.NewGuid()}"; string wrapperVersion = $"expectedVersion {Guid.NewGuid()}"; string releaseLabel = $"expectedLabel {Guid.NewGuid()}"; string updateDevKey = $"expectedUpdateDevKey {Guid.NewGuid()}"; string updatePackageHash = $"expectedHash {Guid.NewGuid()}"; string runtimeVersion = $"expectedRuntimeVersion {Guid.NewGuid()}"; WrapperSdk wrapperSdk = new WrapperSdk(wrapperName, wrapperVersion, runtimeVersion, releaseLabel, updateDevKey, updatePackageHash); DeviceInformationHelper.SetWrapperSdk(wrapperSdk); var deviceInformationHelper = new DeviceInformationHelper(); var device = deviceInformationHelper.GetDeviceInformationAsync().RunNotAsync(); Assert.AreEqual(wrapperName, device.WrapperSdkName); Assert.AreEqual(wrapperVersion, device.WrapperSdkVersion); Assert.AreEqual(releaseLabel, device.LiveUpdateReleaseLabel); Assert.AreEqual(updateDevKey, device.LiveUpdateDeploymentKey); Assert.AreEqual(updatePackageHash, device.LiveUpdatePackageHash); Assert.AreEqual(runtimeVersion, device.WrapperRuntimeVersion); }
internal static void SetWrapperSdk(WrapperSdk wrapperSdk) { _wrapperSdk = wrapperSdk; }