File tree 3 files changed +10
-7
lines changed
3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 4
4
<TargetFrameworks >netstandard2.0;net45</TargetFrameworks >
5
5
<PackageLicenseFile >LICENSE.txt</PackageLicenseFile >
6
6
<RootNamespace >OpenQA.Selenium</RootNamespace >
7
- <AssemblyVersion >4.2.0</AssemblyVersion >
8
- <Version >4.2.0</Version >
9
7
<Company >Appium Commiters</Company >
10
8
<Product >Appium-Dotnet-Driver</Product >
11
9
<PackageRequireLicenseAcceptance >false</PackageRequireLicenseAcceptance >
12
- <GeneratePackageOnBuild >true </GeneratePackageOnBuild >
10
+ <GeneratePackageOnBuild >false </GeneratePackageOnBuild >
13
11
<Copyright >Copyright © 2020</Copyright >
14
12
<PackageProjectUrl >https://github.com/appium/appium-dotnet-driver</PackageProjectUrl >
15
13
<RepositoryUrl >https://github.com/appium/appium-dotnet-driver</RepositoryUrl >
26
24
27
25
<PropertyGroup >
28
26
<PackageLicenseFile >LICENSE.txt</PackageLicenseFile >
29
- <FileVersion >4.2.0</FileVersion >
30
27
</PropertyGroup >
31
28
32
29
<PropertyGroup Condition =" '$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|netstandard2.0|AnyCPU'" >
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ public class AppiumDriverCommand
201
201
/// <summary>
202
202
/// Get the time on the device
203
203
/// </summary>
204
- public const string SystemTime = "system_time " ;
204
+ public const string SystemTime = "getDeviceTime " ;
205
205
206
206
/// <summary>
207
207
/// Get Display Density
Original file line number Diff line number Diff line change 3
3
using NUnit . Framework ;
4
4
using OpenQA . Selenium . Appium ;
5
5
using OpenQA . Selenium . Appium . Android ;
6
+ using static System . String ;
6
7
7
8
namespace Appium . Net . Integration . Tests . Android
8
9
{
@@ -35,8 +36,13 @@ public void AfterEach()
35
36
public void DeviceTimeTest ( )
36
37
{
37
38
var time = _driver . DeviceTime ;
38
- Console . WriteLine ( time ) ;
39
- Assert . AreEqual ( true , time . Length == 28 ) ;
39
+ Assert . Multiple ( ( ) =>
40
+ {
41
+ Assert . NotNull ( time ) ;
42
+ Assert . AreNotEqual ( Empty , time ) ;
43
+ Console . WriteLine ( time ) ;
44
+ Assert . NotNull ( DateTime . Parse ( time ) ) ;
45
+ } ) ;
40
46
}
41
47
}
42
48
}
You can’t perform that action at this time.
0 commit comments