public void GetItemTest() { var itemId = "282782889148"; Context context = new Context(); context.Gateway = Gateway.Production; var tokenFilename = "Token.txt"; Assert.True( File.Exists(tokenFilename), $"The {tokenFilename} file not found." ); using (StreamReader tokenFile = new StreamReader(tokenFilename)) { context.Token = tokenFile.ReadLine(); } var getItem = new GetItem(context, itemId); Assert.True(getItem.exec(), getItem.ErrorMessage); Assert.True(getItem.ItemId == itemId); var timeDiff = getItem.StandardFields.Timestamp - DateTime.Now; Assert.True(Math.Abs(timeDiff.Seconds) < 2); }