Aggiunto playlist x test, altri step di prova...
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<Playlist Version="1.0"><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_cloudOk" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_payloadIsNull" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_callResultOk" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_sourceNotNull" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_hasResult" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_throwNoConfig" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_localOk" /><Add Test="MCC_UnitTest.TestSuite.Test_initSDK_errorNull" /></Playlist>
|
||||
@@ -202,6 +202,7 @@ namespace MCC_UnitTest
|
||||
#endregion
|
||||
|
||||
#region Test reset REDIS
|
||||
#if false
|
||||
|
||||
[TestMethod]
|
||||
public void Test_RedisReset()
|
||||
@@ -213,6 +214,8 @@ namespace MCC_UnitTest
|
||||
}
|
||||
|
||||
// act
|
||||
//MCC.forceRedisFlush();
|
||||
//MCC = null;
|
||||
MCC = new MConnectClient();
|
||||
|
||||
// init async...
|
||||
@@ -222,13 +225,61 @@ namespace MCC_UnitTest
|
||||
reqStatus = taskResult.Result;
|
||||
|
||||
// assert
|
||||
Assert.IsTrue(reqStatus.LocalStatusOk);
|
||||
}
|
||||
Assert.IsTrue(reqStatus.IsAuth);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endregion
|
||||
|
||||
#region Test AUTH + ENROLL
|
||||
|
||||
[TestMethod]
|
||||
public void Test_isAuth()
|
||||
{
|
||||
// arrange
|
||||
if (_cts != null)
|
||||
{
|
||||
_cts.Cancel();
|
||||
}
|
||||
|
||||
// act
|
||||
//MCC.forceRedisFlush();
|
||||
//MCC = null;
|
||||
MCC = new MConnectClient();
|
||||
|
||||
// init async...
|
||||
Task<Result> taskResult = MCC.InitSDKAsync(confFilePath, CancellationToken.None);
|
||||
|
||||
// converto il risultato restituito...
|
||||
reqStatus = taskResult.Result;
|
||||
|
||||
// assert
|
||||
Assert.IsTrue(reqStatus.IsAuth);
|
||||
}
|
||||
[TestMethod]
|
||||
public void Test_isHmiEnrolled()
|
||||
{
|
||||
// arrange
|
||||
if (_cts != null)
|
||||
{
|
||||
_cts.Cancel();
|
||||
}
|
||||
|
||||
// act
|
||||
//MCC.forceRedisFlush();
|
||||
//MCC = null;
|
||||
MCC = new MConnectClient();
|
||||
|
||||
// init async...
|
||||
Task<Result> taskResult = MCC.InitSDKAsync(confFilePath, CancellationToken.None);
|
||||
|
||||
// converto il risultato restituito...
|
||||
reqStatus = taskResult.Result;
|
||||
|
||||
// assert
|
||||
Assert.IsTrue(reqStatus.IsHmiEnrolled);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Test INFO UTENTI
|
||||
|
||||
Reference in New Issue
Block a user