Added: GiveBack Test

This commit is contained in:
TheJoKlLa 2021-02-09 19:09:05 +01:00
parent 6b38fc9d89
commit bf091e4818

View File

@ -6,6 +6,7 @@ using Capnp;
using Capnp.Rpc;
using log4net.Config;
using Microsoft.Extensions.Logging;
using static FabAccessAPI.Schema.Machine.WriteInterface;
namespace FabAccessAPI_Test {
public class Tests {
@ -84,11 +85,16 @@ namespace FabAccessAPI_Test {
Machine testmachine = await machines.GetMachine("Testmachine");
Assert.NotNull(testmachine);
await testmachine.Use();
IGiveBack giveBack = await testmachine.Use();
FabAccessAPI.Schema.Machine.MInfo minfo = await testmachine.GetMInfo();
Assert.NotNull(minfo);
Assert.AreEqual(FabAccessAPI.Schema.State.inUse, minfo.State);
//await giveBack.Ret();
//minfo = await testmachine.GetMInfo();
//Assert.NotNull(minfo);
//Assert.AreEqual(FabAccessAPI.Schema.State.free, minfo.State);
}
}
}